【发布时间】:2021-04-12 04:45:28
【问题描述】:
我一直在尝试在我的计算机(操作系统 Windows)上安装 google-colab,但没有成功。
我运行“pip install google-colab”时的输出很长,但我收到的一些错误是:
> Building wheel for pandas (setup.py) ... error ERROR: Command
> errored out with exit status 1: command:
> 'C:\Users\...\Anaconda3\python.exe' -u -c 'import sys, setuptools,
> tokenize; sys.argv[0] =
> '"'"'C:\\Users\\...\\AppData\\Local\\Temp\\pip-install-ifymdm95\\pandas\\setup.py'"'"';
> __file__='"'"'C:\\Users\\...\\AppData\\Local\\Temp\\pip-install-ifymdm95\\pandas\\setup.py'"'"';f=getattr(tokenize,
> '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
> '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
> bdist_wheel -d 'C:\Users\...\AppData\Local\Temp\pip-wheel-02i01qsx'
那么经过很长的错误输出,结束就是:
Rolling back uninstall of pandas
Moving to c:\users\...\anaconda3\lib\site-packages\pandas-1.2.0.dist-info\
from C:\Users\...\Anaconda3\Lib\site-packages\~andas-1.2.0.dist-info
Moving to c:\users\...\anaconda3\lib\site-packages\pandas\
from C:\Users\...\Anaconda3\Lib\site-packages\~-ndas
ERROR: Command errored out with exit status 1: 'C:\Users\...\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\...\\AppData\\Local\\Temp\\pip-install-ifymdm95\\pandas\\setup.py'"'"'; __file__='"'"'C:\\Users\\...\\AppData\\Local\\Temp\\pip-install-ifymdm95\\pandas\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\...\AppData\Local\Temp\pip-record-67jzzkdh\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\...\Anaconda3\Include\pandas' Check the logs for full command output.
任何提示或帮助将不胜感激。
【问题讨论】:
-
您好,您解决了这个问题吗?我有点被这个问题困住了。
-
我在 python 3.8 中遇到了这个问题,我找不到解决方案。但是,它安装在 python 3.7 中非常困难。
标签: python python-3.x pandas windows google-colaboratory