ZhangZhihui's Blog  

Installing plotly stuck in a Python venv virtual environment in WSL2 Ubuntu.

 

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$
复制代码

 

When I install plotly in a Python venv virtual environment on a Ubuntu virutal machine, it took seconds to complete.

posted on   ZhangZhihuiAAA  阅读(23)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2024-01-15 Redis - Serialize and Deserialize
 
点击右上角即可分享
微信分享提示