一、安装pip:
MacBook-Pro-6:~ $ pip install pyarango --user
-bash: pip: command not found
MacBook-Pro-6:~$wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate
-bash: wget: command not found
easy_install安装pip报错(如果已经是root用户,就不需要加sudo):MacBook-Pro-6:~ $ sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
MacBook-Pro-6:~ $ sudo python -m ensurepip --default-pipPassword:
The directory '/Users/haizhi/Library/Logs/pip' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Ignoring indexes: https://pypi.python.org/simple
The directory '/Users/haizhi/Library/Caches/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.
Requirement already satisfied (use --upgrade to upgrade): setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Collecting pip
Installing collected packages: pip
Successfully installed pip-6.1.1
MacBook-Pro-6:~ $ pip --versionpip 6.1.1 from /Library/Python/2.7/site-packages (python 2.7)
pip安装成功;
MacBook-Pro-6:~ $ pip install pyarango --user
Collecting pyarango
Could not find a version that satisfies the requirement pyarango (from versions: )
No matching distribution found for pyarango
MacBook-Pro-6:~ $ sudo pip install pyarango -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com (使用豆瓣源:https://blog.csdn.net/hshl1214/article/details/50382699)Password:
The directory '/Users/haizhi/Library/Logs/pip' or its parent directory is not owned by the current user and the debug log 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 '/Users/haizhi/Library/Caches/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 '/Users/haizhi/Library/Caches/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.
Collecting pyarango
Downloading http://pypi.doubanio.com/packages/b3/d3/ac60973a6bdc9dbd87f8c66f9fcd0c102847fd5ede184bb55724dc1b6180/pyArango-1.3.1.tar.gz
Collecting requests>=2.7.0 (from pyarango)
Downloading http://pypi.doubanio.com/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)
100% |████████████████████████████████| 94kB 1.1MB/s
Collecting future (from pyarango)
Downloading http://pypi.doubanio.com/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz (824kB)
100% |████████████████████████████████| 827kB 1.4MB/s
Collecting urllib3<1.24,>=1.21.1 (from requests>=2.7.0->pyarango)
Downloading http://pypi.doubanio.com/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 135kB 1.2MB/s
Collecting idna<2.8,>=2.5 (from requests>=2.7.0->pyarango)
Downloading http://pypi.doubanio.com/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 1.7MB/s
Collecting certifi>=2017.4.17 (from requests>=2.7.0->pyarango)
Downloading http://pypi.doubanio.com/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl (150kB)
100% |████████████████████████████████| 151kB 1.9MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.7.0->pyarango)
Downloading http://pypi.doubanio.com/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 135kB 1.6MB/s
Installing collected packages: urllib3, idna, certifi, chardet, requests, future, pyarango
Running setup.py install for future
Running setup.py install for pyarango
Successfully installed certifi-2018.4.16 chardet-3.0.4 future-0.16.0 idna-2.7 pyarango-1.3.1 requests-2.19.1 urllib3-1.23