首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在安装依赖项时,pipenv无法找到模块“runpy”

在安装依赖项时,pipenv无法找到模块“runpy”
EN

Stack Overflow用户
提问于 2018-07-19 17:12:18
回答 1查看 1.5K关注 0票数 3
代码语言:javascript
复制
C:\Users\danie01\fox\test\robotframework>pipenv install
Installing dependencies from Pipfile.lock (49d163)...
An error occurred while installing robotframework-seleniumlibrary==3.1.0! Will try again.
An error occurred while installing selenium==3.9.0! Will try again.
An error occurred while installing robotframework==3.0.2! Will try again.
An error occurred while installing psutil==5.4.3! Will try again.
  ================================ 4/4 - 00:00:00
Installing initially failed dependencies...
     -------------------------------- 0/4 - 00:00:00
Could not import runpy module
ImportError: No module named 'runpy'

     ================================ 0/4 - 00:00:00

我最近为所有用户重新安装了Python,现在我在尝试运行pipenv install时遇到了这个问题。为什么会这样?

Python 3.5在path中。在前面的命令之后立即运行:

代码语言:javascript
复制
C:\Users\danie01\fox\test\robotframework>echo %PATH%
C:\Program Files\Python 3.5\;C:\Program Files\Python 3.5\Scripts\;blahblah

C:\Users\danie01\fox\test\robotframework>pipenv run python --version
Python 3.5.0
EN

回答 1

Stack Overflow用户

发布于 2019-08-02 20:05:44

最近,当我从3.5转移到3.7.3时,我也遇到了同样的问题:

那么您应该可以运行pipenv install了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51428432

复制
相关文章

相似问题

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