报错代码: 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…
from sklearn.linear_model import LinearRegression lr = LinearRegression() print(tr_x.shape,tr_y.shape) lr.fit(tr_x,tr_y) # 报错 (64,) (64,) Traceback (most recent call last): File "F:/Python_Project/sklearn2_2/zong_fu_xi/A_02.py", line 51, in <…
报错代码如下: 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…
报错内容: 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时出现的报错内容: 解决方法: 找到登录状态 如果是网络服务,直接双击此服务,修改为本地系统服务即可启动!…
报错代码: pip3 install gerapy 报错内容: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/mac/Ana 解决: sudo pip3 install gerapy…
问题: 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:…
报错代码: 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…
安装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_…