小编K.D*_*rew的帖子

如何解决pycharm上的错误“dotenv安装错误”

我正在尝试在 pycharm edu 上安装 dotenv 包,但不断收到错误消息“AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'”

我试图通过以 root 用户身份运行命令“pip install --user dotenv”来使用 python 终端解决这个问题,但仍然遇到相同的错误

命令输出如下

Collecting dotenv
Using cached https://files.pythonhosted.org/packages/e2/46/3754073706e31670eed18bfa8a879305b56a471db15f20523c2427b10078/dotenv-0.0.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 194, in setup_context
    __import__('setuptools')
  File "/tmp/easy_install-vzgpp8in/distribute-0.7.3/setuptools/__init__.py", line 2, in <module>
  File "/tmp/easy_install-vzgpp8in/distribute-0.7.3/setuptools/extension.py", line 5, in <module>
  File "/tmp/easy_install-vzgpp8in/distribute-0.7.3/setuptools/dist.py", line 7, in <module>
  File "/tmp/easy_install-vzgpp8in/distribute-0.7.3/setuptools/command/__init__.py", line 8, in <module>
  File "/tmp/easy_install-vzgpp8in/distribute-0.7.3/setuptools/command/install_scripts.py", line …
Run Code Online (Sandbox Code Playgroud)

python pip dotenv

9
推荐指数
2
解决办法
7486
查看次数

标签 统计

dotenv ×1

pip ×1

python ×1