question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

python 3.9 pip install fails (tar.gz instead of .whl)

See original GitHub issue

How to reproduce the behaviour

Python 3.9 command

py -3.9 -m pip install spacy

Python 3.9 output:

Downloading spacy-2.3.2.tar.gz (5.9 MB)
Installing build dependencies: started
  Installing build dependencies: still running...
  Installing build dependencies: still running...
  Installing build dependencies: still running...
  Installing build dependencies: still running...
  Installing build dependencies: still running...
  Installing build dependencies: still running...
  Installing build dependencies: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /usr/local/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-_x7vz17k/overlay --no-warn-script-location --no-
binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'murmurhash>=0.28.0,<1.1.0' thinc==7.4.1
       cwd: None

requirements.txt

spacy

Dockerfile (to reproduce from 0)

FROM python:3.9
RUN pip install --upgrade pip

COPY requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt

docker image test

docker build --tag spacy-bug-test:1.0 .

docker image test output

...

Step 5/5 : RUN pip install --no-cache-dir -r requirements.txt
 ---> Running in 750721f1c153
Collecting spacy
  Downloading spacy-2.3.2.tar.gz (5.9 MB)

# and fails too because its .tar.gz

...

Python 3.8 command

py -3.8 -m pip install spacy

Python 3.8 output

Downloading spacy-2.3.2-cp38-cp38-manylinux1_x86_64.whl
Here all is ok because its .whl

(The very exact moment i change Dockerfile to 3.8 or lower it starts to download wheel and all works)

I suppose that spaCy wheel is not yet ready for python 3.9?

Your Environment

  • Operating System: Linux (docker python 3.9), Windows 10
  • Python Version Used: python 3.9
  • spaCy Version Used: 2.3.2 and any before
  • Environment Information: Clean docker system

I use docker (linux) AND windows 10. Fails same for both. Clean install of python 3.9 (no packages in freeze)

Possibly related issues

https://github.com/pandas-dev/pandas/issues/32045

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
adrianeboydcommented, Oct 9, 2020

There are no python 3.9 wheels yet. We’ll build them for upcoming releases, but we typically don’t go back to build wheels for earlier releases. Right now, we have to wait a bit for our CI/build infrastructure to support python 3.9 and for our dependencies (numpy is the main one) to publish 3.9 wheels. We plan to have releases for v2 and v3 relatively soon (v2.3.3 and v3.0.0 alpha releases), so there will be updated wheels in time.

0reactions
github-actions[bot]commented, Oct 28, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install new packages for Python (Python 3.9.0, Windows ...
Naturally, I installed Python as I use it frequently. But when I tried to install MatPlotLib using the command "pip install matplotlib", it ......
Read more >
How to install, download and build Python wheels - ActiveState
Open source Python packages can be installed from Source Distributions (sdist) or Wheels (whl). According to the Python Packaging Authority ( ...
Read more >
pip install --editable . fails - Google Groups
WARNING: The script webruntime.exe is installed in 'C:\Users\thequ\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\ ...
Read more >
How to use pip install with local tar.gz source file? - Packaging
Is it possible to do a pip install by specifying the local tar.gz ... The compilation fails because the include path to qjson.h...
Read more >
pip download - pip documentation v22.3.1
pip download does the same resolution and downloading as pip install ... then parse for links to archives such as sdist (.tar.gz) or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found