Skip to content
Advertisement

How do I solve error “dotenv installation error” on pycharm

I am trying to install dotenv package on pycharm edu,but keep getting error that reads “AttributeError: module ‘importlib._bootstrap’ has no attribute ‘SourceFileLoader’ “

I tried to solve this using the python terminal by running command “pip install –user dotenv” as root user but still got the same error

command output reads as follows

JavaScript

Command “python setup.py egg_info” failed with error code 1 in /tmp/pycharm-packaging11/dotenv/”

Advertisement

Answer

Install python-dotenv and then import dotenv package instead of python-dotenv, because the latter doesn`t work

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement