Skip to content

BUG:Installation problem in python 3.9 #37135

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

Closed
2 tasks
AdiHamdani opened this issue Oct 15, 2020 · 4 comments · Fixed by #37144
Closed
2 tasks

BUG:Installation problem in python 3.9 #37135

AdiHamdani opened this issue Oct 15, 2020 · 4 comments · Fixed by #37144
Labels
Build Library building on various platforms
Milestone

Comments

@AdiHamdani
Copy link

AdiHamdani commented Oct 15, 2020

  • [ v] I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • (optional) I have confirmed this bug exists on the master branch of pandas.


Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.

Code Sample, a copy-pastable example

# Your code here

Problem description

[When installing pandas, we have these messages:

Collecting pandas
Using cached pandas-1.1.3.tar.gz (5.2 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\adihamdani\appdata\local\programs\python\python39\python.exe' 'c:\users\adihamdani\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\adihamdani\AppData\Local\Temp\pip-build-env-r734sg_q\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.15.4; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.15.4; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"''
cwd: None
Complete output (20 lines):
Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment
Collecting setuptools
Using cached setuptools-50.3.1-py3-none-any.whl (785 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting Cython<3,>=0.29.21
Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Collecting numpy==1.17.3
Using cached numpy-1.17.3.zip (6.4 MB)
Using legacy 'setup.py install' for numpy, since package 'wheel' is not installed.
Installing collected packages: setuptools, wheel, Cython, numpy
Running setup.py install for numpy: started
Running setup.py install for numpy: still running...
Running setup.py install for numpy: finished with status 'done'
ERROR: Could not install packages due to an EnvironmentError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '"C:'


ERROR: Command errored out with exit status 1: 'c:\users\adihamdani\appdata\local\programs\python\python39\python.exe' 'c:\users\adihamdani\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\adihamdani\AppData\Local\Temp\pip-build-env-r734sg_q\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.15.4; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.15.4; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' Check the logs for full command output.

C:\Users\adihamdani>pip install python==3.8.0
ERROR: Could not find a version that satisfies the requirement python==3.8.0 (from versions: none)
ERROR: No matching distribution found for python==3.8.0

]

Expected Output

Output of pd.show_versions()

[paste the output of pd.show_versions() here leaving a blank line after the details tag]

@AdiHamdani AdiHamdani added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 15, 2020
@fangchenli fangchenli added Build Library building on various platforms Python 3.9 and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 15, 2020
fangchenli added a commit to fangchenli/pandas that referenced this issue Oct 15, 2020
@fangchenli
Copy link
Member

fangchenli commented Oct 15, 2020

I'm not sure how to apply this change #37144 when using pip.

pip install pandas

works on Linux without this change. Unfortunately I don't have a Windows machine to test this.

In the meantime, my personal recommendation is to use Python 3.8 with Anaconda. New programmers usually find it much easier to use than pip.

If you really need to use Python 3.9, please give us more details about how you set up the Python enviroment and install pandas. Someone might be able to tell what the problem is.

@AkiraTenchi
Copy link

I had the same issue i was able to fix it by installing the visual studio build tools which can be found here https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017
then pip install numpy
then pip install pandas

@jreback jreback modified the milestones: 1.2, 1.1.4 Oct 16, 2020
simonjayhawkins pushed a commit to simonjayhawkins/pandas that referenced this issue Oct 17, 2020
simonjayhawkins added a commit that referenced this issue Oct 17, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this issue Nov 2, 2020
@LotusLine
Copy link

I had the same issue and was using virtualenv for my environment. I switched over to pipenv and then pandas installed like a charm. Im on MacOs Big Sur.

pip3 install pipenv
pipenv shell
pip3 install pandas

@codin-art
Copy link

@LotusLine I have the same issue but when I try to use your code, the message error : 'pipenv : command not found' appeared. Any solutions please? I have been trying to install pandas for a couples of hours with no success now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants