Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS Error 9: Bad file descriptor while trying to use pip install .... #8769

Open
EdinyangaOttoho opened this issue Aug 16, 2020 · 10 comments
Open
Labels
OS: windows Windows specific type: support User Support

Comments

@EdinyangaOttoho
Copy link

OS Version: Windows 10
Python version: Version 3.6

Attached is a screenshot of the error

err

@abhinandanpawar
Copy link

update python to 3.6 to 3.7 and try to run the same
output:
Microsoft Windows [Version 10.0.19041.450]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\warrior>pip install pyinstaller
Collecting pyinstaller
Downloading pyinstaller-4.0.tar.gz (3.5 MB)
|████████████████████████████████| 3.5 MB 731 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: setuptools in c:\users\warrior\appdata\local\programs\python\python37\lib\site-packages (from pyinstaller) (47.1.0)
Collecting pyinstaller-hooks-contrib>=2020.6
Downloading pyinstaller_hooks_contrib-2020.7-py2.py3-none-any.whl (152 kB)
|████████████████████████████████| 152 kB 544 kB/s
Collecting pywin32-ctypes>=0.2.0; sys_platform == "win32"
Downloading pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB)
Collecting altgraph
Downloading altgraph-0.17-py2.py3-none-any.whl (21 kB)
Collecting pefile>=2017.8.1; sys_platform == "win32"
Downloading pefile-2019.4.18.tar.gz (62 kB)
|████████████████████████████████| 62 kB 171 kB/s
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
|████████████████████████████████| 829 kB 386 kB/s
Using legacy 'setup.py install' for pefile, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Building wheels for collected packages: pyinstaller
Building wheel for pyinstaller (PEP 517) ... done
Created wheel for pyinstaller: filename=pyinstaller-4.0-py3-none-any.whl size=2789243 sha256=541fcc65d1fd514323e13c7e8b2bb9fe7f6ec02c31b17af50016b913ed96ba07
Stored in directory: c:\users\warrior\appdata\local\pip\cache\wheels\3c\26\58\0a2ea56951fcffedcf013660fc2e820df7c9f341744b67e0fb
Successfully built pyinstaller
Installing collected packages: pyinstaller-hooks-contrib, pywin32-ctypes, altgraph, future, pefile, pyinstaller
Running setup.py install for future ... done
Running setup.py install for pefile ... done
Successfully installed altgraph-0.17 future-0.18.2 pefile-2019.4.18 pyinstaller-4.0 pyinstaller-hooks-contrib-2020.7 pywin32-ctypes-0.2.0

C:\Users\warrior>python --version
Python 3.7.8

@Rainbow-Musoke
Copy link

Well am running on python 3.8.3 through anaconda. pip is installed but can not get to install any other package. it brings up the bad descriptor error 9
i have tried literally all the possible online solutions but nothing has worked yet. My laptop only has drive C an acer w10
help please

@EdinyangaOttoho
Copy link
Author

I am facing this issue too
No online hint has helped in all forums
I resorted to installing packages manually, but some still come up with the OS Error 09: Bad File Descriptor

@pfmoore
Copy link
Member

pfmoore commented Aug 28, 2020

When you say "I resorted to installing packages manually" what precisely did you do? Unpack the wheel and manually copy the files into place? Or something else?

And when you say "some still come up with the OS Error 09: Bad File Descriptor", again, what do you mean? That packages you "installed manually" give that error? When? When you import them?

This issue seems like it's affecting multiple people, but there's so little information on how it occurs, or how to reproduce it, that there's nothing much we can do until someone supplies more information.

@pradyunsg pradyunsg added OS: windows Windows specific type: support User Support labels Aug 30, 2020
@pcprashant88
Copy link

if i am trying to install any module in pychrm then i get bad discriptor error. please give me a solution on this

@CHANDRASEKHAR613
Copy link

pip install pyinstaller

for this still come up with the OS Error 09: Bad File Descriptor

@pcprashant88
Copy link

pcprashant88 commented Sep 17, 2020 via email

@ghost
Copy link

ghost commented Oct 13, 2020

I installed python on my D drive and it fixed the error completely,

so try changing the location for the installation of python to some other drive and see if it works

@malcolmdurosaye
Copy link

I experienced same error for two weeks but couldn't find solution.
So, I tried to partition my hard drive (C:) and created a new volume (D:). I then installed python in the D:\ path and boom!. It works perfectly right now.

@shkemu
Copy link

shkemu commented Jan 4, 2021

First think, check the script folder is empty, if folder is empty ensure the pip first use this command "python -m ensurepip" then check that folder it have some pip .exe files then will try "PIP install *" .or other wise change the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS: windows Windows specific type: support User Support
Projects
None yet
Development

No branches or pull requests

9 participants