报错代码: pip3 install gerapy 报错内容: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/mac/Ana 解决: sudo pip3 install gerapy…
安装OpenCV过程中出现错误 代码: pip-conda install -i https://pypi.douban.com/simple/ opencv-python 报错内容如下: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/mac/Anaconda/anaconda3/lib/python3.7/site-packages/cv2/__init_…
近期练习flask写个blog, 安装flask扩展时 pip install Flask-WTF 报ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/itsdangerous' Consider using the `--user` option or check the permission…
安装xlrd包的时候,总是报错:ERROR: Could not install packages due to an EnvironmentError: HTTPConnectionPool (host='127.0.0.1', port=8888): Max retries exceeded with url: http://pypi.douban .com/simple/ (Caused by ProxyError('Cannot connect to proxy.', NewConnec…
更新pip模块的版本:python -m pip install --upgrade pip 但是遇到报错提示: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问.: 'c:\program files (x86)\python\python37\lib\site-packages\pip-19.0.3.dist-info\entry_points.txt' Consider using the --…
报错:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问.: 'E:\\Anoconda\\Lib\\site-packages\\cv2\\cv2.cp37-win_amd64.pyd'Consider using the `--user` option or check the permissions. 解决方案:直接在install 后面加一个--user就可以了…
Ubuntu在使用一些pip的时候会遇到:“Could not install packages due to an EnvironmentError: [Errno 13] 权限不够:”的问题. 在正常的命令后面加一个 --user即可: 在使用pip的相关命令时,使用国内源的速度更快:如下是使用了清华的国内源. pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ --user 这样会将Pyt…
报错内容: Error response from daemon: conflict: unable to delete f5b6ef70d79b (must be forced) - image is being used by stopped container 0a740a8a885c 解决办法: 先删除容器,再删除镜像 删除所有已停止的容器 docker rm $(docker ps -a -q) 删除所有镜像 docker rmi $(docker images -q) 强制删除 强制…
启动redis时出现的报错内容: 解决方法: 找到登录状态 如果是网络服务,直接双击此服务,修改为本地系统服务即可启动!…
问题: windows下安装Redis第一次启动报错: [2368] 21 Apr 02:57:05.611 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error 解决: 在命令行中运行 redis-cli.exe 127.0.0.1:6379>shutdown not connected>exit 然后重新运行 redis-server.exe redis.windows.conf 启动成功! from:…
报错代码如下: filePath='test.xls' data=pd.read_excel(filePath) print(data.head()) 报错内容如下: Traceback (most recent call last): File "e:/PyCharm/Demo/TestFileDirectory/test.py", line 18, in <module> data=pd.read_excel(filePath,data__only=True) File…
报错代码: new_x = 84610 pre_y = model.predict(new_x) print(pre_y) 报错结果: ValueError: Expected 2D array, got scalar array instead: array=84610. Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if…
报错代码: import pandas as pd pd1 = pd.read_csv('D:/python34/program/wx_chat_single/qq_single.csv') 报错内容: D:\python34\python.exe D:/python34/program/wx_chat_single/t1.py sys:1: DtypeWarning: Columns (18) have mixed types. Specify dtype option on import o…
输出报错: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 220: in 解决方案:将编码方式utf-8 修改为gb18030 例如: requests.get(url,headers).content.decode('gb18030')…
pip install django 下载安装Django报错, 按照提示的建议改为 pip install --user django 安装完成…
解决:更新安装service_identity pip3 install service_identity --force --upgrade…
问题: added 246 packages from 681 contributors and audited 382 packages in 17.509s found 13 vulnerabilities (4 low, 6 moderate, 2 high, 1 critical) run `npm audit fix` to fix them, or `npm audit` for details 解决: npm audit fix --force…
cmd中敲命令: python -m ensurepip 更新升级pip命令: python -m pip install --upgrade pip…
1.下载对应的Twisted,下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 2.通过Anaconda3的Anaconda Prompt进行安装 3.具体步骤: (1) cd 下载的文件地址,如本人的:cd F:\下载 (2)pip install Twisted-19.2.1-cp37-cp37m-win_amd64.whl from: https://blog.csdn.net/HPU_CPD/article/details/…
问题: execjs._exceptions.ProgramError: ReferenceError: window is not defined 解决: 定义一个就行 var window = {}; 然后再看它读了window的哪些属性 都补上就行…
原因:openpyxl版本低,需升级 pip install --upgrade openpyxl…
安装nest_asyncio pip install nest_asyncio 导入并调用 import nest_asyncio nest_asyncio.apply()…
问题代码: res = requests.post(getXxxxList_url, headers=headers, data={}) 对象网站: angular4 apache 通过验证 (cookie,x-??-key) payload: 空对象(实际登录在network里查看的) {} 爬取结果: Required request body is missing 解决方案: import json import requests # ...略... body = {} res = req…
docker compose将解析版本为"2",而不是"3.3".应该改为: version: "2"…
为了永久性保留更改,您可以修改 /etc/docker/daemon.json 文件并添加上 registry-mirrors 键值. { "registry-mirrors": ["https://registry.docker-cn.com"] } 修改保存后重启 Docker 以使配置生效.…
解决方案:开头加上 # -*- coding: utf-8 -*…
1.安装django 执行pip3 install --user django 2.解决方法:加--user   执行pip3 install --user django…