在WSL中安装pip时遇到问题

2024-06-08 06:24:22 发布

您现在位置:Python中文网/ 问答频道 /正文

你好,我正在尝试将cysignals安装到Windows10Pro上的conda环境(miniconda3)。在

但我一直收到这样的错误:

(venv) C:\Users\ezgie\albatrosscraper>pip install cysignals
Collecting cysignals
  Using cached https://files.pythonhosted.org/packages/51/5f/727aa099de5c60b3fb42cdde72097277803dabe78b177afdb5b835bbf909/cysignals-1.10.2.tar.gz
Requirement already satisfied: Cython>=0.28 in c:\users\gie\.conda\envs\scraper\lib\site-packages (from cysignals) (0.29.1)
Building wheels for collected packages: cysignals
  Building wheel for cysignals (setup.py) ... error
  ERROR: Complete output from command 'C:\Users\gie\.conda\envs\scraper\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\ezgie\\AppData\\Local\\Temp\\pip-install-a3z1c01o\\cysignals\\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\gie\AppData\Local\Temp\pip-wheel-y7d4uyav' --python-tag cp36:
  ERROR: running bdist_wheel
  running build
  error: [WinError 2] system cannot find the file specified
  ----------------------------------------
  ERROR: Failed building wheel for cysignals
  Running setup.py clean for cysignals
Failed to build cysignals
Installing collected packages: cysignals
  Running setup.py install for cysignals ... error
    ERROR: Complete output from command 'C:\Users\gie\.conda\envs\scraper\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\gie\\AppData\\Local\\Temp\\pip-install-a3z1c01o\\cysignals\\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\gie\AppData\Local\Temp\pip-record-767tzgab\install-record.txt' --single-version-externally-managed --compile:
    ERROR: running install
    running build
    error: [WinError 2] system cannot find the file specified
    ----------------------------------------
ERROR: Command "'C:\Users\gie\.conda\envs\scraper\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\gie\\AppData\\Local\\Temp\\pip-install-a3z1c01o\\cysignals\\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\gie\AppData\Local\Temp\pip-record-767tzgab\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\gie\AppData\Local\Temp\pip-install-a3z1c01o\cysignals\

我还试图使用pip install将其安装到WSL,但随后出现以下错误:

^{pr2}$

有什么问题吗?在


Tags: installpippylocalsetupcodeerroropen

热门问题