在使用pip install tornado
命令安裝tornado時,報錯了,錯誤信息如下:
Could not find a version that satisfies the requirement tornado (from versions: )
No matching distribution found for tornado
原因是我的電腦沒有科學上網,科學上網後再次執行安裝命令,報了另一個錯:
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/futures-3.2.0.dist-info'
原因是權限問題,在命令前加上sudo就可以,即使用命令sudo pip install tornado
。
執行情況如下:
但這是安裝到系統帶的python2.7上了,如需安裝到python3.6上,執行此命令即可
sudo pip3 install tornado
,執行情況如下:
Have fun.