首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法在PyNaCl中安装带有pip的PyCharm

无法在PyNaCl中安装带有pip的PyCharm
EN

Stack Overflow用户
提问于 2020-07-22 12:14:21
回答 2查看 2.7K关注 0票数 2

在Windows 10上使用python3.8.1安装最新版本:

pip install PyNaCl给出了这个错误(最后10行):

代码语言:javascript
运行
复制
    File "C:\Program Files (x86)\Python3\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Program Files (x86)\Python3\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "setup.py", line 161, in run
      raise Exception("ERROR: The 'make' utility is missing from PATH")
  Exception: ERROR: The 'make' utility is missing from PATH

  ----------------------------------------
  Failed building wheel for PyNaCl
  Running setup.py clean for PyNaCl
Failed to build PyNaCl
Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly

它似乎与车轮有关,所以我尝试用no-binary安装它,但也失败了:

代码语言:javascript
运行
复制
      File "C:\Program Files (x86)\Python3\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\Administrator\AppData\Local\Temp\pip-install-q0db5s_n\PyNaCl\setup.py", line 161, in run
        raise Exception("ERROR: The 'make' utility is missing from PATH")
    Exception: ERROR: The 'make' utility is missing from PATH

    ----------------------------------------
Command "C:\Users\Administrator\Documents\DiscordBot\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-q0db5s_n\\PyNaCl\\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\Administrator\AppData\Local\Temp\pip-record-s27dvlrv\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\Administrator\Documents\DiscordBot\venv\include\site\python3.8\PyNaCl" failed with error code 1 in C:\Users\Administrator\AppData\Local\Temp\pip-install-q0db5s_n\PyNaCl\

编辑:这似乎只是我的be (由Pycharm制造)的一个问题-我不知道问题是什么,安装了setuptools和轮子。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-07-22 13:21:36

我最终通过使用python -m pip install --no-use-pep517 pynacl解决了这个问题

票数 3
EN

Stack Overflow用户

发布于 2022-02-15 14:15:15

升级静脉中的pip对我有用:

代码语言:javascript
运行
复制
.\env\Scripts\activate
pip install -U pip
pip install -r requirements.txt
deactivate
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63033970

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档