pip install -ve . 报错

博客提及Python安装editable build时出现报错情况,围绕Python安装过程中的这一问题展开,反映了在Python使用中可能遇到的安装异常状况。

安装 editable build报错

=> ERROR [master 4/8] RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --no-cache-dir -r /app 24.2s ------ > [master 4/8] RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --no-cache-dir -r /app/requirements.txt: 0.624 Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ 0.807 Collecting scrapy_plus (from -r /app/requirements.txt (line 1)) 0.868 Downloading https://mirrors.aliyun.com/pypi/packages/ce/ab/8ff5db0cf85a46e581c3d5086ef0510225712e41e15cd52af1e0171e065e/scrapy_plus-1.0.5-py3-none-any.whl (29 kB) 0.941 Collecting pyhocon (from -r /app/requirements.txt (line 2)) 0.988 Downloading https://mirrors.aliyun.com/pypi/packages/39/2d/cd65dc4fa8c901e6d02b4074771ced04828d71af18b97da24ed1e55507d7/pyhocon-0.3.61-py3-none-any.whl (25 kB) 1.089 Collecting tls-client (from -r /app/requirements.txt (line 3)) 1.241 Downloading https://mirrors.aliyun.com/pypi/packages/75/cd/5c735818692927e07980357445569adb6ee204c3332d19c516bae01c6cfa/tls_client-1.0.1-py3-none-any.whl (41.3 MB) 23.63 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.3/41.3 MB 1.9 MB/s eta 0:00:00 23.91 ERROR: Could not find a version that satisfies the requirement csv (from versions: none) 23.91 ERROR: No matching distribution found for csv 24.12 24.12 [notice] A new release of pip is available: 24.0 -> 25.0.1 24.12 [notice] To update, run: python3.10 -m pip install --upgrade pip ------ failed to solve: process "/bin/sh -c pip install -i https://mirrors.aliyun.com/pypi/simple/ --no-cache-dir -r /app/requirements.txt" did not complete successfully: exit code: 1
04-03
这是为什么报错: Downloading http://rdsource.tp-link.com/pypi/packages/mlx-audio/0.1.0/mlx_audio-0.1.0-py3-none-any.whl (153 kB) INFO: pip is still looking at multiple versions of mlx-audio to determine which version is compatible with other requirements. This could take a while. Downloading http://rdsource.tp-link.com/pypi/packages/mlx-audio/0.0.4/mlx_audio-0.0.4-py3-none-any.whl (123 kB) Downloading http://rdsource.tp-link.com/pypi/packages/mlx-audio/0.0.3/mlx_audio-0.0.3-py3-none-any.whl (103 kB) Downloading http://rdsource.tp-link.com/pypi/packages/mlx-audio/0.0.2/mlx_audio-0.0.2-py3-none-any.whl (48 kB) Downloading http://rdsource.tp-link.com/pypi/packages/mlx-audio/0.0.1/mlx_audio-0.0.1-py3-none-any.whl (35 kB) Collecting phonemizer>=3.3.0 (from mlx-audio) Downloading http://rdsource.tp-link.com/pypi/packages/phonemizer/3.3.0/phonemizer-3.3.0-py3-none-any.whl (103 kB) ERROR: Cannot install mlx-audio==0.0.1, mlx-audio==0.0.2, mlx-audio==0.0.3, mlx-audio==0.0.4, mlx-audio==0.1.0, mlx-audio==0.2.0, mlx-audio==0.2.1, mlx-audio==0.2.2, mlx-audio==0.2.3, mlx-audio==0.2.4, mlx-audio==0.2.5 and mlx-audio==0.2.6 because these package versions have conflicting dependencies. The conflict is caused by: mlx-audio 0.2.6 depends on mlx>=0.25.2 mlx-audio 0.2.5 depends on mlx>=0.25.2 mlx-audio 0.2.4 depends on mlx>=0.25.2 mlx-audio 0.2.3 depends on mlx>=0.25.2 mlx-audio 0.2.2 depends on mlx>=0.25.2 mlx-audio 0.2.1 depends on mlx>=0.22.0 mlx-audio 0.2.0 depends on mlx>=0.22.0 mlx-audio 0.1.0 depends on mlx>=0.22.0 mlx-audio 0.0.4 depends on mlx>=0.22.0 mlx-audio 0.0.3 depends on mlx>=0.22.0 mlx-audio 0.0.2 depends on mlx>=0.22.0 mlx-audio 0.0.1 depends on mlx>=0.22.0 Additionally, some packages in these conflicts have no matching distributions available for your environment: mlx To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow pip to attempt to solve the dependency conflict ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
最新发布
12-06
Using cached pandas-2.3.2.tar.gz (4.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [10 lines of output] + meson setup C:\Users\Administrator\AppData\Local\Temp\pip-install-hyyh2y47\pandas_6ed8239a1fd5415bb3daa016c0e13513 C:\Users\Administrator\AppData\Local\Temp\pip-install-hyy h2y47\pandas_6ed8239a1fd5415bb3daa016c0e13513\.mesonpy-u8ve26p8 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\Administrator\AppData\Local\Temp\pip-install-hyyh2y47\pandas_6ed8239a1fd5415bb3daa016c0e13513\.mesonpy-u8ve26p8\meson-python-native-file.ini The Meson build system Version: 1.9.0 Source dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-hyyh2y47\pandas_6ed8239a1fd5415bb3daa016c0e13513 Build dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-hyyh2y47\pandas_6ed8239a1fd5415bb3daa016c0e13513\.mesonpy-u8ve26p8 Build type: native build ..\meson.build:2:0: ERROR: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe A full log can be found at C:\Users\Administrator\AppData\Local\Temp\pip-install-hyyh2y47\pandas_6ed8239a1fd5415bb3daa016c0e13513\.mesonpy-u8ve26p8\meson-logs\meson-log.txt [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
09-15
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值