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

pip pandas from wheels #7936

Closed
shmily3929 opened this issue Mar 30, 2020 · 8 comments
Closed

pip pandas from wheels #7936

shmily3929 opened this issue Mar 30, 2020 · 8 comments
Labels
C: PEP 517 impact Affected by PEP 517 processing type: support User Support

Comments

@shmily3929
Copy link

shmily3929 commented Mar 30, 2020

Environment

  • pip version:20.0.2
  • Python version:3.6.8
  • OS:ubuntu
  • pandas:1.0.1 tar

Description

pip==9.0.3 pandas from wheels is ok
pip==20.0.2 pandas from wheels is fail

commod
pip3 install --no-cache-dir --no-index --find-links wheelhouse/pandas-1.0.1.tar.gz pandas==1.0.1

pip 10.0.0 i have install setuptools=45.2.0

  Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools

pip >= 18.0

ERROR: Command errored out with exit status 1:
  pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-p084uluv/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links wheelhouse/pandas-1.0.1.tar.gz --trusted-host mirrors.aliyun.com -- setuptools wheel 'Cython>=0.29.13' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.14.5; python_version>='"'"'3.7'"'"' 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'"'"''
       cwd: None
  Complete output (6 lines):
  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
  Looking in links: wheelhouse/pandas-1.0.1.tar.gz
  ERROR: Could not find a version that satisfies the requirement setuptools (from versions: none)
  ERROR: No matching distribution found for setuptools

How to Reproduce

how to install pandas https://pandas.pydata.org/docs/getting_started/install.html
1.mkdir wheelhouse && cd
2.wget
https://files.pythonhosted.org/packages/02/c3/e8c56de02d6c52f8541feca2fd77117e8ae4956f7b3e5cdbed726624039b/pandas-1.0.1.tar.gz && cd../
3. pip3 install --no-cache-dir --no-index --find-links wheelhouse/pandas-1.0.1.tar.gz pandas==1.0.1

@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Mar 30, 2020
@McSinyx
Copy link
Contributor

McSinyx commented Mar 30, 2020

There's no panda in the command, and you're not on AIX. Could you please elaborate on what you're trying to do?

@shmily3929
Copy link
Author

shmily3929 commented Mar 30, 2020

@McSinyx I want pip3 install pandas from wheels
cmd: pip3 install --no-cache-dir --no-index --find-links wheelhouse/pandas-1.0.1.tar.gz pandas==1.0.1

pip==9.0.3 is success but pip3==20.0.2 fail

@McSinyx
Copy link
Contributor

McSinyx commented Mar 30, 2020

Your command gives me this:

$ pip3 install --no-cache-dir --no-index --find-links wheelhouse/pandas-1.0.1.tar.gz pandas==1.0.1
Defaulting to user installation because normal site-packages is not writeable
Looking in links: wheelhouse/pandas-1.0.1.tar.gz
WARNING: Url 'wheelhouse/pandas-1.0.1.tar.gz' is ignored. It is either a non-existing path or lacks a specific scheme.
Collecting pandas==1.0.1
ERROR: Could not install packages due to an EnvironmentError: Invalid URL 'wheelhouse/pandas-1.0.1.tar.gz': No schema supplied. Perhaps you meant http://wheelhouse/pandas-1.0.1.tar.gz?

Is what you want to install panda from sdist? Then you can try pip3 install pandas==1.0.1 --no-binary pandas.

@shmily3929
Copy link
Author

@McSinyx i update "How to Reproduce".
you can't create pandas tar.

@uranusjr
Copy link
Member

uranusjr commented Mar 30, 2020

pip introduced build isolation with PEP 517 in 19.0, which requires the user to install PEP 517 requirements (listed in pyproject.toml) at runtime. You will need to also include those packages alongside with with source package itself in your --find-links to make it work.

For Pandas 1.0.1, you need setuptools, wheel, and Cython>=0.29.13..

Related: #7863

@uranusjr uranusjr added C: PEP 517 impact Affected by PEP 517 processing S: awaiting response Waiting for a response/more information type: support User Support labels Mar 30, 2020
@triage-new-issues triage-new-issues bot removed S: needs triage Issues/PRs that need to be triaged labels Mar 30, 2020
@shmily3929
Copy link
Author

@uranusjr Error start at 10.0.0

@no-response no-response bot removed the S: awaiting response Waiting for a response/more information label Mar 30, 2020
@pradyunsg
Copy link
Member

$ pip3 install --no-cache-dir --no-index --find-links wheelhouse/pandas-1.0.1.tar.gz pandas==1.0.1

Hmm... What you'd want to do is:

$ pip3 install --no-cache-dir --no-index --find-links wheelhouse/ pandas==1.0.1
# or
$ pip3 install --no-cache-dir --no-index wheelhouse/pandas-1.0.1.tar.gz

@pradyunsg
Copy link
Member

Closing since this seems to have been resolved for OP.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: PEP 517 impact Affected by PEP 517 processing type: support User Support
Projects
None yet
Development

No branches or pull requests

4 participants