pipenv安装后运行报错

来源:2-3 使用官方推荐的pipenv创建虚拟环境(很好用哦~)

彩色超人

2018-11-13

求教,使用pip安装pipenv 没有报错,但是运行pipenv命令以后报错如下(搜索引擎实在找不到类似情况。。。。):

操作系统:Windows Server 2008 R2

Python版本:3.7.1

[c:\~]$ pipenv
Traceback (most recent call last):
  File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python37\Scripts\pipenv.exe\__main__.py", line 5, in   File "c:\program files\python37\lib\site-packages\pipenv\__init__.py", line 23, in     from .cli import cli
  File "c:\program files\python37\lib\site-packages\pipenv\cli\__init__.py", line 3, in     from .command import cli
  File "c:\program files\python37\lib\site-packages\pipenv\cli\command.py", line 7, in     import crayons
  File "c:\program files\python37\lib\site-packages\pipenv\patched\crayons.py", line 49, in     is_powershell = "powershell" in shellingham.detect_shell()[0]
  File "c:\program files\python37\lib\site-packages\pipenv\vendor\shellingham\__init__.py", line 22, in detect_shell
    shell = get_shell(pid, max_depth=max_depth)
  File "c:\program files\python37\lib\site-packages\pipenv\vendor\shellingham\nt.py", line 100, in get_shell
    processes = dict(_iter_process())
  File "c:\program files\python37\lib\site-packages\pipenv\vendor\shellingham\nt.py", line 78, in _iter_process
    info = {'executable': str(pe.szExeFile.decode('utf-8'))}
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 0: invalid start byte


写回答

1回答

7七月

2018-11-14

这个错误提示不明显,我猜多半是你的pip和python的版本不一致,导致无法安装pipenv。

0
1
彩色超人
非常感谢!
2018-12-01
共1条回复

Python Flask高级编程之从0到1开发《鱼书》精品项目

7月老师深入浅出剖析Flask核心机制,和你一起探讨Python高级编程

2751 学习 · 1277 问题

查看课程