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

python: AT14 failed to install numpy package in a virtual environment #2392

Open
maxiwell opened this issue Sep 28, 2021 · 1 comment
Open
Labels

Comments

@maxiwell
Copy link

I created a venv with AT14.0 to test Tensorlfow but I am getting the error below when I run pip to install numpy package. AT15.0 doesn't reproduce this bug and numpy is installed properly.

To reproduce:

/opt/at14.0/bin/python3 -m venv ~/.venv/at14-env
source ~/.venv/at14-env/bin/activate
pip3 install --upgrade pip
pip3 install --prefer-binary numpy

Error message:

pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
  File "/home/maxiwell/.venv/at14-env/lib64/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 89, in _build_backend
    obj = import_module(mod_path)
  File "/opt/at14.0/lib64/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'
@tuliom
Copy link
Contributor

tuliom commented Sep 28, 2021

The warning message at the beginning might be related to this:

  WARNING: Value for prefixed-purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /tmp/pip-build-env-_x_wnusw/normal/lib/python3.8/site-packages
  sysconfig: /tmp/pip-build-env-_x_wnusw/normal/lib64/python3.8/site-packages

@tuliom tuliom added the bug label Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants