【发布时间】:2021-06-06 02:26:21
【问题描述】:
我正在尝试使用来自 github (https://github.com/LBNL-ETA/loadshape) 的 loadshape 包
当我输入时
pip install git+https://bitbucket.org/berkeleylab/eetd-loadshape.git@master
出现以下错误
Collecting git+https://bitbucket.org/berkeleylab/eetd-loadshape.git@master
Cloning https://bitbucket.org/berkeleylab/eetd-loadshape.git (to revision master) to c:\users\fulld\appdata\local\temp\pip-req-build-4_g9awz1
Running command git clone -q https://bitbucket.org/berkeleylab/eetd-loadshape.git 'C:\Users\fulld\AppData\Local\Temp\pip-req-build-4_g9awz1'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\fulld\anaconda3\envs\MRCH\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\fulld\\AppData\\Local\\Temp\\pip-req-build-4_g9awz1\\setup.py'"'"'; __file__='"'"'C:\\Users\\fulld\\AppData\\Local\\Temp\\pip-req-build-4_g9awz1\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\fulld\AppData\Local\Temp\pip-req-build-4_g9awz1\pip-egg-info'
cwd: C:\Users\fulld\AppData\Local\Temp\pip-req-build-4_g9awz1\
Complete output (7 lines):
'R' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\fulld\AppData\Local\Temp\pip-req-build-4_g9awz1\setup.py", line 42, in <module>
if len(RHOME) == 0: raise RuntimeError("Please make sure R is installed.")
RuntimeError: Please make sure R is installed.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我尝试了其他人提供的以下解决方案:
pip install auto-py-to-exe- 删除 anaconda 并重新安装它并检查变量路径
- 将我的电脑设置语言更改为英语
pip install pygetwindow==0.0.1pip install -U setuptoolsconda install -c r r-baseconda install git
但是它们似乎都不起作用,并且尝试 6 号和 7 号也打印出错误(PackagesNotFoundError)。
我非常感谢任何帮助我解决我面临的问题,因为我完全迷失了。
----- 已编辑 ------
我已经在我的电脑上安装了 R, at C:\Program Files\R\R-4.0.4
但出现了错误。我必须将程序文件重新定位到某个地方吗?
【问题讨论】:
标签: python github anaconda spyder command-prompt