[英]Archlinux pip and setuptools not upgraded
終端命令:
python -V output: Python 3.5.2
我想pip
和setuptools
在更新pycharm
但出現此錯誤:
錯誤:找不到python打包工具“pip”。
建議的解決方案:
嘗試從系統終端運行此命令。 確保為位於“/usr/bin/python3.5”的 Python 解釋器安裝了正確版本的“pip”。
終端命令:
which pip output: usr/bin/pip
我正在嘗試使用終端命令:
pacman -S(or -Syu,-Syy) python-pip or pacman -S(-Syu,-Syy) python-setuptools
resolving dependencies...
looking for conflicting packages...
Packages (5) python-packaging-16.7-1 python-pyparsing-2.1.5-1
python-setuptools-1:24.0.2-1 python-six-1.10.0-2
python-pip-8.1.2-1
Total Installed Size: 8.03 MiB
:: Proceed with installation? [Y/n] y
(5/5) checking keys in keyring [######################] 100%
(5/5) checking package integrity [######################] 100%
(5/5) loading package files [######################] 100%
(5/5) checking for file conflicts [######################] 100%
error:failed to commit transaction (conflicting files)
python-setuptools: /usr/bin/easy_install exists in filesystem
python-setuptools: /usr/bin/easy_install-3.5 exists in filesystem
python-pip: /usr/bin/pip exists in filesystem
python-pip: /usr/bin/pip3 exists in filesystem
python-pip: /usr/bin/pip3.5 exists in filesystem
Errors occured, no packages were upgraded.
所以我正在嘗試:
python -m pip install -U pip
輸出:
/usr/bin/python: 沒有名為 pip 的模塊
如何更新 pip ?
這應該有效:
pacman -S --force python-pip and pacman -S --force python-setuptools
不建議將 python 包與 pacman 一起安裝。 因為 pacman 無法識別 pip 安裝的任何包。 我認為您應該刪除使用 pip 安裝的所有 pip 包並使用 pacman 或 virtualenv 重新安裝所有 python 包。 如果您需要用於 arch 的 python 包,您可以通過 AUR 搜索,或者您可以在虛擬環境中安裝任何 python 包。
如果您想要來自pypi
而不是來自存儲庫的最新版本,請執行以下操作
pip install -U pip
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.