pip install -i https://pypi.org/simple package_name
pip install -i https://pypi.python.org/simple package_name
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple package_name
(duckdb_penv) frank@ZZHPC:/mnt/d/ZZHUBT/workspace/duckdb_penv$ pip install -i https://pypi.python.org/simple plotly --verbose Using pip 24.3.1 from /mnt/d/ZZHUBT/workspace/duckdb_penv/lib/python3.12/site-packages/pip (python 3.12) Looking in indexes: https://pypi.python.org/simple Collecting plotly Obtaining dependency information for plotly from https://files.pythonhosted.org/packages/e5/ae/580600f441f6fc05218bd6c9d5794f4aef072a7d9093b291f1c50a9db8bc/plotly-5.24.1-py3-none-any.whl.metadata Downloading plotly-5.24.1-py3-none-any.whl.metadata (7.3 kB) Requirement already satisfied: tenacity>=6.2.0 in ./lib/python3.12/site-packages (from plotly) (9.0.0) Requirement already satisfied: packaging in ./lib/python3.12/site-packages (from plotly) (24.2) Downloading plotly-5.24.1-py3-none-any.whl (19.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.1/19.1 MB 3.2 MB/s eta 0:00:00 Installing collected packages: plotly
^CERROR: Operation cancelled by user (duckdb_penv) frank@ZZHPC:/mnt/d/ZZHUBT/workspace/duckdb_penv/lib/python3.12/site-packages$ rm -rf plotly _plotly_future_ _plotly_utils jupyterlab_plotly plotly-5.24.1.dist-info
(duckdb_penv) frank@ZZHPC:/mnt/d/ZZHUBT/workspace/duckdb_penv/lib/python3.12/site-packages$ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple plotly --verbose Using pip 24.3.1 from /mnt/d/ZZHUBT/workspace/duckdb_penv/lib/python3.12/site-packages/pip (python 3.12) Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting plotly Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e5/ae/580600f441f6fc05218bd6c9d5794f4aef072a7d9093b291f1c50a9db8bc/plotly-5.24.1-py3-none-any.whl (19.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.1/19.1 MB 3.5 MB/s eta 0:00:00 Requirement already satisfied: tenacity>=6.2.0 in /mnt/d/ZZHUBT/workspace/duckdb_penv/lib/python3.12/site-packages (from plotly) (9.0.0) Requirement already satisfied: packaging in /mnt/d/ZZHUBT/workspace/duckdb_penv/lib/python3.12/site-packages (from plotly) (24.2) Installing collected packages: plotly ^CERROR: Operation cancelled by user (duckdb_penv) frank@ZZHPC:/mnt/d/ZZHUBT/workspace/duckdb_penv/lib/python3.12/site-packages$ rm -rf plotly _plotly_future_ _plotly_utils jupyterlab_plotly plotly-5.24.1.dist-info
Other packages can be installed normally.
Finally, the installation succeeded, it just took too long, about 15 minutes.
(duckdb_penv) frank@ZZHPC:/mnt/d/ZZHUBT/workspace$ pip download plotly Collecting plotly Using cached plotly-5.24.1-py3-none-any.whl.metadata (7.3 kB) Collecting tenacity>=6.2.0 (from plotly) Downloading tenacity-9.0.0-py3-none-any.whl.metadata (1.2 kB) Collecting packaging (from plotly) Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB) Using cached plotly-5.24.1-py3-none-any.whl (19.1 MB) Downloading tenacity-9.0.0-py3-none-any.whl (28 kB) Downloading packaging-24.2-py3-none-any.whl (65 kB) Saved ./plotly-5.24.1-py3-none-any.whl Saved ./tenacity-9.0.0-py3-none-any.whl Saved ./packaging-24.2-py3-none-any.whl Successfully downloaded plotly tenacity packaging (duckdb_penv) frank@ZZHPC:/mnt/d/ZZHUBT/workspace$ lh total 19M drwxrwxrwx 1 frank frank 4.0K Jan 9 12:55 ZZHTEST drwxrwxrwx 1 frank frank 4.0K Jan 9 15:44 duckdb drwxrwxrwx 1 frank frank 4.0K Jan 14 17:35 .. drwxrwxrwx 1 frank frank 4.0K Jan 15 09:37 duckdb_penv -rwxrwxrwx 1 frank frank 19M Jan 15 11:22 plotly-5.24.1-py3-none-any.whl -rwxrwxrwx 1 frank frank 28K Jan 15 11:22 tenacity-9.0.0-py3-none-any.whl drwxrwxrwx 1 frank frank 4.0K Jan 15 11:22 . -rwxrwxrwx 1 frank frank 64K Jan 15 11:22 packaging-24.2-py3-none-any.whl (duckdb_penv) frank@ZZHPC:/mnt/d/ZZHUBT/workspace$ pip install plotly-5.24.1-py3-none-any.whl Processing ./plotly-5.24.1-py3-none-any.whl Requirement already satisfied: tenacity>=6.2.0 in ./duckdb_penv/lib/python3.12/site-packages (from plotly==5.24.1) (9.0.0) Requirement already satisfied: packaging in ./duckdb_penv/lib/python3.12/site-packages (from plotly==5.24.1) (24.2) Installing collected packages: plotly Successfully installed plotly-5.24.1 (duckdb_penv) frank@ZZHPC:/mnt/d/ZZHUBT/workspace$
标签:penv,none,frank,py3,Installing,stuck,duckdb,plotly,Pip From: https://www.cnblogs.com/zhangzhihui/p/18672728