Pip Install throws error code 1
Solution 1
Check that you have installed the 64-bit version of python and try again with
pip3 install jupyter notebook
If it still doesn't work than I would prefer you to use Anaconda it offers the easiest way to install, run and update libraries and packages and virtual environments for windows.
It comes with jupyter notebook pre-installed. On the jupyter notebook doumentation page they also recommend installing it using anaconda
Solution 2
I had the same problem and I found a solution that worked for me. Instead of pip
I used: py -m easy_install textract
![Brian Mauck](https://lh4.googleusercontent.com/-Lrl56rbTbbo/AAAAAAAAAAI/AAAAAAAAL-M/2rVwpbuUHHs/photo.jpg?sz=256)
Brian Mauck
Updated on June 04, 2022Comments
-
Brian Mauck about 2 years
Recently switched from MacOSX to a ThinkPad with Windows 10.
Installed Python 3.7, Pip 9
Attempted
pip install jupyter
and received the following error:Command
python setup.py egg_info
failed with error code 1 inC:\Users\BRIANM~1\AppData\Local\Temp\pip-build-greiazb7\pywinpty\
Uninstalled setup tools, upgraded setup tools, upgraded pip, ran as admin, all the traditional fixes are not working.
Anyone have a fix?
-
aiven over 6 yearsIs there a reason why you are using unstable
python 3.7 alpha
? -
Brian Mauck over 6 yearsGood point, I could revert to 3.6, might be a better call.
-
-
Brian Mauck over 6 yearspip3 also didn't work. I uninstalled my python package and used anaconda, worked just fine. Just not a huge fan of the anaconda distro, given that it uses its own shell
-
sg7 over 6 yearsCan you elaborate?
-
Admin over 6 yearsActually I wanted to install textract on python3. I tried : py -m pip install textract but I got the same error then I changed it to py -m easy_install textract and it worked. I know it's a simple solution but I'm new to python ...
-
a20 over 5 years@BrianMauck just a sanity check, but are you sure you had the proper rights to install using pip/pip3? Did you use sudo?