在pip install 安装第三方包时,比如我的命令为:
pip --default-timeout=100 install -U http://download.pytorch.org/whl/cu80/torch-0.1.12.post2-cp27-none-linux_x86_64.whl
有时候会遇到错误提示:
Could not install packages due to an EnvironmentError: ...
Consider using the `--user` option or check the permissions.
解决方法:
根据提示可以考虑用--user选项安装,直接在install的后边加上 --user即可
pip --default-timeout=100 install --user -U http://download.pytorch.org/whl/cu80/torch-0.1.12.post2-cp27-none-linux_x86_64.whl
完美解决有没有哈哈,双击666