僕はpythonを2と3のふたつのバージョンで使い分けをしたくてpyenvを使用しています。
ある時、python2に切り替えようと
UTF
1pyenv versions 2system
しか出てきませんでした。
そこで
UTF
1pyenv install 2.7.10 2pyenv: no such command `install'
と返されてしまいました。
そこでpyenvをアップデートしようと
UTF
1pip install --upgrade pyenv 2Could not find a version that satisfies the requirement pyenv (from versions: ) 3No matching distribution found for pyenv
エラーが返ってきました。
解決の方法ご存知の方がいらっしゃればお願いします
追記
使用OS:
CentOS Linux release 7.4.1708 (Core)
pyenvのインストール方法:
リンク内容
リンク内容
等のサイト様を参考...
さらに追記
UTF
1[root@vultr ~]# pyenv 2pyenv 1.2.1-17-g907a86b 3Usage: pyenv <command> [<args>] 4 5Some useful pyenv commands are: 6 commands List all available pyenv commands 7 local Set or show the local application-specific Python version 8 global Set or show the global Python version 9 shell Set or show the shell-specific Python version 10 rehash Rehash pyenv shims (run this after installing executables) 11 version Show the current Python version and its origin 12 versions List all Python versions available to pyenv 13 which Display the full path to an executable 14 whence List all Python versions that contain the given executable 15 16See `pyenv help <command>' for information on a specific command. 17For full documentation, see: https://github.com/pyenv/pyenv#readme
回答1件
あなたの回答
tips
プレビュー