[英]OSError: [WinError 193] %1 is not a valid Win32 application (Pandas)
I have been trying a simple code on Pycharm 2019.2.1 on windows 10 (64bit)我一直在尝试在 windows 10(64 位)上的 Pycharm 2019.2.1 上的简单代码
'''
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
df = pd.read_csv('covid_19_clean_complete.csv')
X = df[["Deaths"]]
Y = df["Confirmed"]
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size=.25, random_state=42)
acr = LinearRegression()
acr.fit(X_train,Y_train)
print(acr.score(X_test,Y_test))
'''
but showing me this error但向我展示了这个错误
I've already uninstalled pandas once and installed again using pip uninstall pandas and pip install pandas through cmd. I've already uninstalled pandas once and installed again using pip uninstall pandas and pip install pandas through cmd. pandas installed photo
pandas 安装照片
Did much google search but the links I found, were not clear to me(as I faced such problem first).做了很多谷歌搜索,但我发现的链接对我来说并不清楚(因为我首先遇到了这样的问题)。 Here's the link OSError: [WinError 193] %1 is not a valid Win32 application
这是链接OSError: [WinError 193] %1 is not an valid Win32 application
Hope to find a solution.希望能找到解决办法。 Thank You
谢谢你
Finally, all I did was uninstall Pycharm and python as well from my system.最后,我所做的只是从我的系统中卸载 Pycharm 和 python 。 Obviously, again I had to install those.
显然,我不得不再次安装这些。 Then the problem solved.
然后问题就解决了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.