这是PEP 668的结果,如果你不能或者不想使用venv模块,你可以用--break-system-packages开关强制pip安装...
如果我尝试以下命令之一:sudo pip listsudo pip uninstall <something>我总是收到此错误:/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/primitives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove suppor...
1/ Install Latest:sudo pip3 install git+https://github.com/sudoofus/cifstab.git sudo python3 -m pip install cifstab Script installs to: /usr/local/bin/cifstab Included the original cifscloak console script for backwards compatibility ( /usr/local/bin/cifscloak ), some day this will be ...
3号坑:使用anaconda安装第三方包时会导致python从3.6变为3.7,环境无法使用,所以使用pip时确定一下第三方包的版本 4号坑:卸载anaconda,如果不删除,且新安装的路径改变了,就会发生冲突 #第一步 rm -rf anaconda3 #第二步 删除配置文件里anaconda的路径设置代码 1. 2. 3. 4. 5号坑:安装后记得重新登陆一下。
$ sudo pip install --upgrade pyOpenSSL Requirement already up-to-date: pyOpenSSL in /usr/lib/python2.7/site-packages Requirement already up-to-date: six>=1.5.2 in /usr/lib/python2.7/site-packages (from pyOpenSSL) Requirement already up-to-date: cryptography>=0.7 in /usr/lib64/python2.7/si...
解决办法: sudo apt-get install python-dev 然后继续 pip方式尝试安装pyopenssl,但是依然报错: cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_444d7397xa22f8491.c:165:25: fatal error: openssl/aes.h: 没有那个文件或目录 #include <openssl/aes.h> ...