总是安装失败_
(base) E:\爬虫\电影评论>pip install tensorflow2.2.0
Collecting tensorflow2.2.0
Downloading tensorflow-2.2.0-cp37-cp37m-win_amd64.whl (459.2 MB)
|████ | 53.9 MB 75 kB/s eta 1:29:39ERROR: Exception:
Traceback (most recent call last):
File “d:\anaconda\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: ‘tensorflow’
使用清华源下载
pip install tensorflow==2.2.0 -i https://pypi.doubanio.com/simple
出现ERROR:
Consider using the --user option or check the permissions.
代码如下(示例):
Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\\anaconda\\Lib\\site-packages\\tensorflow\\python\\_dtypes.pyd'
根据提示修改
## 修改成--user
代码如下(示例):
(base) E:\爬虫\电影评论>pip install --user tensorflow==2.2.0 -i https://pypi.doubanio.com/simple
显示成功
代码如下(示例):
Successfully installed tensorflow-2.2.0

2628

被折叠的 条评论
为什么被折叠?



