-
I have update pip and setuptools, but I still can't install pak from .tar.gz
My system information:
Please help me, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
It also happens on
|
Beta Was this translation helpful? Give feedback.
-
When I install older
|
Beta Was this translation helpful? Give feedback.
-
The latest version I can use is |
Beta Was this translation helpful? Give feedback.
-
Hi @ovo-Tim, would it be possible to provide an example of failure that can be reproduced the issue outside of your personal machine (so we can inspect the code as it runs and investigate better)? When I tried to replicate the problem you are describing in a more controlled environment1 everything seems to work fine: > docker run --rm -it archlinux:base-20230723.0.166908 /bin/bash
pacman -Sy --needed --noconfirm python
python -m venv /tmp/.venv
/tmp/.venv/bin/python -m pip install -U 'pip==23.2.1'
/tmp/.venv/bin/python -m pip install 'fire==0.5.0'
# Collecting fire
# Downloading fire-0.5.0.tar.gz (88 kB)
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.3/88.3 kB 2.6 MB/s eta 0:00:00
# Installing build dependencies ... done
# Getting requirements to build wheel ... done
# Preparing metadata (pyproject.toml) ... done
# Collecting six (from fire)
# Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
# Collecting termcolor (from fire)
# Downloading termcolor-2.3.0-py3-none-any.whl (6.9 kB)
# Building wheels for collected packages: fire
# Building wheel for fire (pyproject.toml) ... done
# Created wheel for fire: filename=fire-0.5.0-py2.py3-none-any.whl size=116932 sha256=d494b5c9c57b90df69157212fa49b3aed9d004e4e4235d3f5f7e56beabc260a9
# Stored in directory: /root/.cache/pip/wheels/a7/ee/a5/19e91481be8bea594935d137578bfe77d6bf905e4595336f6b
# Successfully built fire
# Installing collected packages: termcolor, six, fire
# Successfully installed fire-0.5.0 six-1.16.0 termcolor-2.3.0 That might indicate that there is something wrong in your setup that is external to setuptools. I would recommend you having a look on this quick guide from Stack Overflow on how to describe minimal reproducible examples, and then if possible to modify the example I provided above with the necessary steps to replicate the failure. Footnotes
|
Beta Was this translation helpful? Give feedback.
-
I found this problem only happened when the python versions is lower than 3.10. |
Beta Was this translation helpful? Give feedback.
-
I have tested again, but it didn't happen. ❯ docker run --rm -it --net=host mambaorg/micromamba /bin/bash
(base) mambauser@TimTu-Arch:/tmp$ micromamba create -n test_pip python=3.8 -c conda-forge
conda-forge/linux-64 34.8MB @ 7.2MB/s 4.8s
conda-forge/noarch 14.8MB @ 2.4MB/s 6.1s
Transaction
Prefix: /opt/conda/envs/test_pip
Updating specs:
- python=3.8
Package Version Build Channel Size
───────────────────────────────────────────────────────────────────────────
Install:
───────────────────────────────────────────────────────────────────────────
+ _libgcc_mutex 0.1 conda_forge conda-forge 3kB
+ ld_impl_linux-64 2.40 hf3520f5_1 conda-forge 708kB
+ ca-certificates 2024.2.2 hbcca054_0 conda-forge 155kB
+ libgomp 13.2.0 h77fa898_7 conda-forge 422kB
+ _openmp_mutex 4.5 2_gnu conda-forge 24kB
+ libgcc-ng 13.2.0 h77fa898_7 conda-forge 776kB
+ openssl 3.3.0 h4ab18f5_3 conda-forge 3MB
+ libxcrypt 4.4.36 hd590300_1 conda-forge 100kB
+ libzlib 1.2.13 hd590300_5 conda-forge 62kB
+ libffi 3.4.2 h7f98852_5 conda-forge 58kB
+ bzip2 1.0.8 hd590300_5 conda-forge 254kB
+ ncurses 6.5 h59595ed_0 conda-forge 887kB
+ libuuid 2.38.1 h0b41bf4_0 conda-forge 34kB
+ libnsl 2.0.1 hd590300_0 conda-forge 33kB
+ xz 5.2.6 h166bdaf_0 conda-forge 418kB
+ tk 8.6.13 noxft_h4845f30_101 conda-forge 3MB
+ libsqlite 3.45.3 h2797004_0 conda-forge 860kB
+ readline 8.2 h8228510_1 conda-forge 281kB
+ python 3.8.19 hd12c33a_0_cpython conda-forge 22MB
+ wheel 0.43.0 pyhd8ed1ab_1 conda-forge 58kB
+ setuptools 70.0.0 pyhd8ed1ab_0 conda-forge 483kB
+ pip 24.0 pyhd8ed1ab_0 conda-forge 1MB
Summary:
Install: 22 packages
Total download: 36MB
───────────────────────────────────────────────────────────────────────────
Confirm changes: [Y/n]
Transaction starting
_libgcc_mutex 2.6kB @ 3.4kB/s 0.7s
_openmp_mutex 23.6kB @ 27.1kB/s 0.9s
libnsl 33.4kB @ 29.3kB/s 0.3s
ca-certificates 155.4kB @ 133.8kB/s 1.2s
libgomp 422.3kB @ 316.2kB/s 1.3s
wheel 58.0kB @ 40.9kB/s 0.3s
bzip2 254.2kB @ 173.5kB/s 0.7s
ld_impl_linux-64 707.9kB @ 467.1kB/s 1.5s
libzlib 61.6kB @ 37.1kB/s 0.2s
libuuid 33.6kB @ 20.0kB/s 0.2s
libgcc-ng 775.8kB @ 443.1kB/s 0.4s
readline 281.5kB @ 158.7kB/s 0.3s
libffi 58.3kB @ 30.6kB/s 0.2s
libsqlite 859.9kB @ 438.8kB/s 0.8s
libxcrypt 100.4kB @ 44.5kB/s 0.3s
xz 418.4kB @ 166.1kB/s 0.6s
setuptools 483.0kB @ 180.1kB/s 0.4s
tk 3.3MB @ 1.2MB/s 0.9s
pip 1.4MB @ 519.2kB/s 1.0s
openssl 2.9MB @ 1.1MB/s 0.9s
ncurses 887.5kB @ 302.2kB/s 0.4s
python 22.4MB @ 4.4MB/s 2.4s
Linking _libgcc_mutex-0.1-conda_forge
Linking ld_impl_linux-64-2.40-hf3520f5_1
Linking ca-certificates-2024.2.2-hbcca054_0
Linking libgomp-13.2.0-h77fa898_7
Linking _openmp_mutex-4.5-2_gnu
Linking libgcc-ng-13.2.0-h77fa898_7
Linking openssl-3.3.0-h4ab18f5_3
Linking libxcrypt-4.4.36-hd590300_1
Linking libzlib-1.2.13-hd590300_5
Linking libffi-3.4.2-h7f98852_5
Linking bzip2-1.0.8-hd590300_5
Linking ncurses-6.5-h59595ed_0
Linking libuuid-2.38.1-h0b41bf4_0
Linking libnsl-2.0.1-hd590300_0
Linking xz-5.2.6-h166bdaf_0
Linking tk-8.6.13-noxft_h4845f30_101
Linking libsqlite-3.45.3-h2797004_0
Linking readline-8.2-h8228510_1
Linking python-3.8.19-hd12c33a_0_cpython
Linking wheel-0.43.0-pyhd8ed1ab_1
Linking setuptools-70.0.0-pyhd8ed1ab_0
Linking pip-24.0-pyhd8ed1ab_0
Transaction finished
To activate this environment, use:
micromamba activate test_pip
Or to execute a single command in this environment, use:
micromamba run -n test_pip mycommand
(base) mambauser@TimTu-Arch:/tmp$ micromamba activate test_pip
(test_pip) mambauser@TimTu-Arch:/tmp$ pip install fire
Collecting fire
Downloading fire-0.6.0.tar.gz (88 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.4/88.4 kB 255.6 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting six (from fire)
Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting termcolor (from fire)
Downloading termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading termcolor-2.4.0-py3-none-any.whl (7.7 kB)
Building wheels for collected packages: fire
Building wheel for fire (setup.py) ... done
Created wheel for fire: filename=fire-0.6.0-py2.py3-none-any.whl size=117029 sha256=a8e665f2b2742822e2429fdd824249200eb6004b34a0bb6808c6fb0efdc64b1f
Stored in directory: /home/mambauser/.cache/pip/wheels/f6/76/a0/afe23f6f3bc186630845efab23bc7a6e348204102070fdf465
Successfully built fire
Installing collected packages: termcolor, six, fire
Successfully installed fire-0.6.0 six-1.16.0 termcolor-2.4.0
(test_pip) mambauser@TimTu-Arch:/tmp$ python -V
Python 3.8.19
(test_pip) mambauser@TimTu-Arch:/tmp$ pip install fire==0.5.0
Collecting fire==0.5.0
Downloading fire-0.5.0.tar.gz (88 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.3/88.3 kB 274.7 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: six in /opt/conda/envs/test_pip/lib/python3.8/site-packages (from fire==0.5.0) (1.16.0)
Requirement already satisfied: termcolor in /opt/conda/envs/test_pip/lib/python3.8/site-packages (from fire==0.5.0) (2.4.0)
Building wheels for collected packages: fire
Building wheel for fire (setup.py) ... done
Created wheel for fire: filename=fire-0.5.0-py2.py3-none-any.whl size=116934 sha256=448c405233cce2a1425714d62aaa060adb145a0abd39b6492a90f5d62c7406f6
Stored in directory: /home/mambauser/.cache/pip/wheels/5b/eb/43/7295e71293b218ddfd627f935229bf54af9018add7fbb5aac6
Successfully built fire
Installing collected packages: fire
Attempting uninstall: fire
Found existing installation: fire 0.6.0
Uninstalling fire-0.6.0:
Successfully uninstalled fire-0.6.0
Successfully installed fire-0.5.0 |
Beta Was this translation helpful? Give feedback.
I have tested again, but it didn't happen.