下载python包

修改pip下载源

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider

更新pip版本

python -m pip install --upgrade pip

查看下载的包的安装位置

pip show tensorflow

卸载包

pip uninstall 要卸载的包名

查看那些包需要更新

pip list  --outdated

报错RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

需要更新某个包

pip install numpy --upgrade


Import TensorFlow as tf 报错:ImportError: DLL load failed: 找不到指定的程序

需要指定版本进行安装,。在自动安装了tensorflow时, protobuf安装的是最新版本3.6.1, 出现了不兼容的问题。

pip install protobuf==3.6.0

猜你喜欢

转载自www.cnblogs.com/anqiang1995/p/10256389.html
今日推荐