babyjustsaidyes 2019-11-06 11:42 采纳率: 0%
浏览 766
已结题

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来执行呢?(不要长期)

  • 写回答

3条回答 默认 最新

  • 吃鸡王者 2019-11-06 14:20
    关注

    你试试 :
    python2 -m easy_install ................

    评论

报告相同问题?