Reputation: 61
I am trying to install few modules specifically dotenv using pip in python But I got an error
I have tried updating pip version and updating setuptool but problem still exist.
I tried to install dotenv using pip it showed installing message for few minutes after that it showed error instead of installing it. here are the few lines of the error I got
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
Traceback (most recent call last):
File "C:\users\rajj\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\installer.py", line 82, in fetch_build_egg
subprocess.check_call(cmd)
File "C:\users\rajj\appdata\local\programs\python\python38-32\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\users\\rajj\\appdata\\local\\programs\\python\\python38-32\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\tmpz17tfqwd', '--quiet', 'distribute']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Upvotes: 5
Views: 6090
Reputation: 3441
Try the explicit Python 3 pip command:
python3 -m pip install python-dotenv
Upvotes: 1
Reputation: 291
How are you installing dotenv? Usually people forget the correct package is python-dotenv not dotenv:
pip install python-dotenv
Here are some other friends in the same boat :)
Upvotes: 29