Python数据分析与可视化:实战案例解析
229
2024-01-22
我只是运行以下命令:
pip install -U steem
并且该安装效果很好,直到没法安装 pycrypto
。以后我做了
pip install cryptography
命令是由于我认为这是丢失的软件包。所以我的问题是,我如何安装 steem
没有pycrypto-error(或其他pycrypto包装)和如何卸载我不需要的密码包装。 (我正在使用Windows 7和Python 3)
Requirement already up-to-date: python-dateutil in c:\users\***\appdata\local\programs\python\python36\lib\site-packages (from dateparser->maya->steem)
...
Installing collected packages: urllib3, idna, chardet, certifi, requests, pycryp
to, funcy, w3lib, voluptuous, diff-match-patch, scrypt, prettytable, appdirs, la
ngdetect, ruamel.yaml, humanize, tzlocal, regex, dateparser, pytzdata, pendulum,
maya, ecdsa, pylibscrypt, ujson, toolz, steem
Running setup.py install for pycrypto ... error
Complete output from command c:\users\***\appdata\local\programs\pytho
n\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\
***~1\\AppData\\Local\\Temp\\pip-build-k6flhu5k\\pycrypto\\setup.py';f=getattr(
tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();
exec(compile(code, __file__, 'exec'))" install --record C:\Users\***N~1\AppDat
a\Local\Temp\pip-igpkll6u-record\install-record.txt --single-version-externally-
managed --compile:
running install
running build
running build_py
...
building 'Crypto.Random.OSRNG.winrandom' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "c:\users\***\appdata\local\programs\python\python36\python.exe -u
-c "import setuptools, tokenize;__file__='C:\\Users\\***N~1\\AppData\\Local\\
Temp\\pip-build-k6flhu5k\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(
__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __fil
e__, 'exec'))" install --record C:\Users\***N~1\AppData\Local\Temp\pip-igpkll6
u-record\install-record.txt --single-version-externally-managed --compile" faile
d with error code 1 in C:\Users\***N~1\AppData\Local\Temp\pip-build- k6flhu5k\p
ycrypto\
您需要安装Microsoft Visual C ++ 14.0来安装Pycrypto:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft VisualC++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
在评论中,您询问要使用哪一个链接。使用链接 Visual C ++ 2015构造工具。这将安装Visual C ++ 14.0,而无需安装Visual Studio。
在您询问的有关安装方法的评论中 pycrypto
不需要安装编译器。链接中的2进制文件仿佛比您使用的python更早版本。一个链接是Dropbox帐户中的2进制文件。
我不建议下载第3方提供的密码图库的2进制版本。确保您取得版本的唯一方法 pycrypto
这与您的Python版本兼容,并且还没有使用任何后门构造,就是用来从源头构造它。
安装了Visual C ++后,只需重新运行原始命令:
pip install -U steem
要找出各种安装选项的含义,请运行此命令:
pip help install
帮助 -U
选项说
-U, --upgrade Upgrade all specified packages to the newest availableversion. The handling of dependencies depends on the
upgrade-strategy used.
如果您还没有 steem
已安装库,您可以在没有的情形下运行命令 -U
选项。
免责声明:
本网址(www.yingxiongyun.com)发布的材料主要源于独立创作和网友匿名投稿。此处提供的所有信息仅供参考之用。我们致力于提供准确且可信的信息,但不对材料的完整性或真实性作出任何保证。用户应自行验证相关信息的正确性,并对其决策承担全部责任。对于由于信息的错误、不准确或遗漏所造成的任何损失,本网址不承担任何法律责任。本网站所展示的所有内容,如文字、图像、标志、音频、视频、软件和程序等的版权均属于原创作者。如果任何组织或个人认为网站内容可能侵犯其知识产权,或包含不准确之处,请即刻联系我们进行相应处理。
发表评论
暂时没有评论,来抢沙发吧~