简体   繁体   English

我正在尝试在 python 3.8 中将 pandas 安装为 pd 并且我收到一个连续错误

[英]I am trying to install pandas as pd in python 3.8 and I am getting a continuous error

I am on windows 10 with pip version 20.2.1 and I used pip install pandas and it says I have successfully installed pandas but when I try to import it it says it is an unresolved import and also gives me the error... I am on windows 10 with pip version 20.2.1 and I used pip install pandas and it says I have successfully installed pandas but when I try to import it it says it is an unresolved import and also gives me the error...

PS C:\WINDOWS\system32> & C:/Users/dannyz/AppData/Local/Programs/Python/Python38-32/python.exe "c:/Users/dannyz/Desktop/Python/Excel Automation.py"
Traceback (most recent call last):
  File "c:/Users/dannyz/Desktop/Python/Excel Automation.py", line 1, in <module>
    import pandas
  File "c:\Users\dannyz\Desktop\Python\pandas\__init__.py", line 11, in <module>
    __import__(dependency)
  File "c:\Users\dannyz\Desktop\Python\numpy\__init__.py", line 138, in <module>
    from . import _distributor_init
  File "c:\Users\dannyz\Desktop\Python\numpy\_distributor_init.py", line 26, in <module>
    WinDLL(os.path.abspath(filename))
  File "C:\Users\dannyz\AppData\Local\Programs\Python\Python38-32\lib\ctypes\__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application

This is my code..这是我的代码..

import pandas as pd

print("hello")

This problem is caused by conflicting program paths;这个问题是由于程序路径冲突引起的; you have Python files in two different places:您在两个不同的地方有 Python 文件:

C:/Users/dannyz/AppData/Local/Programs/Python/Python38-32/ C:/Users/dannyz/AppData/Local/Programs/Python/Python38-32/

And

c:/Users/dannyz/Desktop/Python/ c:/Users/dannyz/Desktop/Python/

I googled the error code and came across this GitHub thread here about it.我用谷歌搜索了错误代码,并在这里找到了这个 GitHub 线程。 It seems you need to reinstall Python after deleting the original files, and/or moving the python files you already have.删除原始文件和/或移动已有的 python 文件后,您似乎需要重新安装 Python。 Be sure to backup all the programs you want to keep.请务必备份您要保留的所有程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError,我正在尝试安装 pandas 但我遇到了一些错误 - ModuleNotFoundError, i am trying to install pandas but i got some error 我正在尝试在Ubuntu 13.10上为Python3.3安装熊猫 - I am trying to install pandas for Python3.3 on Ubuntu 13.10 尝试安装命令“ python setup.py egg_info”失败时出现错误代码1 - I am getting this error when I am trying to install Command “python setup.py egg_info” failed with error code 1 我正在尝试使用“pip install Pillow”安装枕头,但出现错误 - I am trying to install pillow using 'pip install Pillow' but I am getting error 我正在尝试将图像上传到Firebase,但出现错误。 我正在使用python 3.6.1 - i am trying to upload an image to firebase but i am getting an error. i am using python 3.6.1 当我尝试在Windows上安装LocalStack时遇到此错误 - Getting this error when I am trying to install LocalStack on windows 我正在尝试在 Mac 上安装 pyaudio 并收到以下错误 - I am trying to install pyaudio on Mac and getting the following error 我正在尝试在 Windows 中安装 psycopg2 并出现错误 - I am trying to install psycopg2 in windows and getting error 最近安装了 python 3.8,我正在尝试安装 py -3 -m pip install -U discord.py 使用空闲 - installed python 3.8 recently and i am trying to install py -3 -m pip install -U discord.py using the idle 我尝试在我的 python 上安装 httplib,但出现错误 - I try to install httplib on my python but I am getting an error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM