VPS-服务器是Python2.6版本,我安装了Python3.5.2版本。当我尝试使用help pip安装一些软件包时,会出现错误。
在安装过程中:
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
版本:
# Python -V
# Python 3.5.2
# pip -V
# pip 8.1.2 from /usr/lib/
编辑: 所以现在which pip,which python和which python3已经开始以某种方式正常工作了。我还能够使用pip安装库。唯一剩下的问题是apt_pkg的问题。运行apt-get install python-apt会带来以下好处: Reading package lists... Done
Building dependency tree
Reading state information... Done
python-apt is already the newest version (1.6.3ubuntu1). 运行任何python应用程序仍然会出
在尝试使用pipenv之后,我的python安装和各种包出现了问题(显然不太顺利)。 ➜ which Python
/usr/bin/Python
➜ which python3.8
/usr/local/bin/python3.8 然后,我运行的任何不直接是python命令的命令都会抛出一个糟糕的解释器错误 ➜ pip
zsh: /usr/local/bin/pip: bad interpreter: /usr/local/opt/python/bin/python3.7: no such file or directory
➜ django-admin
zsh: /usr/local
我正在尝试在WSL Ubuntu 18.04.2LTS上安装pip。当我尝试时,它在安装python3-crypto时失败了:
Setting up python3-crypto (2.6.1-8ubuntu2) ...
/usr/bin/python3: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory
在这个错误之后,一切都失败了,python3也被破坏了。图书馆在系统上:
$ locate libexpat.so.1
我在Ubuntu16.04上成功地安装了python3和pip3,但是pip3安装失败了。我怎样才能解决这个问题?pip3 install的错误信息如下:
# pip3 install xlwt
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
File "/usr/lib/python3/dist-packages/pip/__init__.py", line 21, in <module>
我有python3.8.0(在Windows上)
当我试图运行:pip install selenium时,我得到以下错误:
Fatal error in launcher: Unable to create process using '"c:\python38\python.exe" "C:\Python38\Scripts\pip.exe" install selenium': The system cannot find the file specified.
python pip install selenium和py pip inst
我想下载PIL库来在python上裁剪图像,但是我就是无法下载这个模块。下面是显示在终端上的内容
$ pip install PIL
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 su