Pip Install throws error code 1

18,117

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

Share:
18,117
Brian Mauck
Author by

Brian Mauck

Updated on June 04, 2022

Comments

  • Brian Mauck
    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 in C:\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
      aiven over 6 years
      Is there a reason why you are using unstable python 3.7 alpha?
    • Brian Mauck
      Brian Mauck over 6 years
      Good point, I could revert to 3.6, might be a better call.
  • Brian Mauck
    Brian Mauck over 6 years
    pip3 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
    sg7 over 6 years
    Can you elaborate?
  • Admin
    Admin over 6 years
    Actually 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
    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?