15,064
edits
m (→References) |
m (→Windows) |
||
| Line 105: | Line 105: | ||
== 安裝或移除 python 套件 == | == 安裝或移除 python 套件 == | ||
=== Windows === | === Windows === | ||
安裝套件 | 安裝套件<ref>[https://stackoverflow.com/questions/48720833/could-not-find-a-version-that-satisfies-the-requirement-tensorflow python - Could not find a version that satisfies the requirement tensorflow - Stack Overflow]</ref> | ||
<pre> | <pre> | ||
手動切換到 python 2.x 版本的目錄 | Python2: 手動切換到 python 2.x 版本的目錄 | ||
$ c:\Python27\Scripts\pip.exe install <package> | $ c:\Python27\Scripts\pip.exe install <package> | ||
$ c:\Python27\Scripts\pip.exe install -r requirements.txt | $ c:\Python27\Scripts\pip.exe install -r requirements.txt | ||
$ py -2 -m pip install <package> | |||
已知 pip、pip3 支援 python3 的套件 | Python3: 已知 pip、pip3 支援 python3 的套件 | ||
$ pip3 install <package> | $ pip3 install <package> | ||
$ py -m pip install <package> | |||
</pre> | </pre> | ||
| Line 118: | Line 120: | ||
<pre> | <pre> | ||
已知 pip3 支援 Python3 的套件 | 已知 pip3 支援 Python3 的套件 | ||
$ | $ pip3 remove <package> | ||
</pre> | </pre> | ||