5

python2有easy_install 但是却无法使用是怎么回事?

按照该连接操作:https://blog.csdn.net/qq_40678222/article/details/82734870

hellopython@ubuntu:~$ easy_install --version
setuptools 41.6.0 from /home/hellopython/.local/lib/python2.7/site-packages (Python 2.7)
hellopython@ubuntu:~$ sudo easy_install virtualenvwrapper
sudo: easy_install: command not found
hellopython@ubuntu:~$ cd /home/hellopython/.local/lib/python2.7/site-packages 
hellopython@ubuntu:~/.local/lib/python2.7/site-packages$ ls

decorator-4.4.1.dist-info                       retry
decorator.py                                    retry-0.9.2.dist-info
decorator.pyc                                   scrapy
easy_install.py                                 Scrapy-1.8.0.dist-info
easy_install.pyc                                selenium


请问这是为什么?python2里有easy_install.py ,但是却无法使用,是因为默认用python3解释器吗?怎么临时指定python2来执行呢?(不要长期)

查看全部
weixin_43256057
weixin_43256057
2019/11/06 11:42
  • python
  • 点赞
  • 收藏
  • 回答
    私信

3个回复