Tag:

安装pip时出现问题:找不到pip命令

安装pip时遇到问题并且不确定为什么有人可以帮我找出为什么pip正在返回-bash: pip: command not found ? $ echo $PATH /Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin $ sudo easy_install pip Searching for pip Best match: pip 8.1.2 Processing pip-8.1.2-py2.7.egg pip 8.1.2 is already the active version in easy-install.pth Installing pip script to /usr/local/bin error: [Errno 2] No such file or directory: ‘/usr/local/bin/pip’

如何在Ubuntu 16.10上安装Python 3.6的pip?

我想首先指出这个问题可能看似重复,但事实并非如此。 我在Ask Ubuntu上看到的所有问题都是关于Python 3的pip,我在谈论Python 3.6。 当时使用的步骤不适用于Python 3.6。 我从官方docker商店得到了一张清晰的Ubuntu 16.10图像。 运行apt-get update 运行apt-get install python3.6 运行apt-get install python3-pip 运行pip3 install requests bs4 运行python3.6 script.py 得到下面的ModuleNotFoundError : Traceback (most recent call last): File “script.py”, line 6, in import requests ModuleNotFoundError: No module named ‘requests’ 我在机器中的Python和pip: python3 python3.5 python3.5m python3.6 python3m python3-config python3.5-config python3.5m-config python3.6m python3m-config pip pip3 […]

获取root用户的警告文件权限

这个警告意味着什么? 我在amazon ec2 Ubuntu 14.04 LTS实例上使用root执行以下命令时得到了它: $ pip install https://github.com/troeger/opensubmit/archive/0.6.2.tar.gz The directory ‘/home/ubuntu/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag. The directory ‘/home/ubuntu/.cache/pip’ or its […]