This tool installs pyenv
and friends. It is inspired by rbenv-installer.
There are two ways to install pyenv. The PyPi support is not tested by many users yet, so the direct way is still recommended if you want to play it safe.
Install:
$ curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
Update:
$ pyenv update
Uninstall: pyenv
is installed within $PYENV_ROOT
(default: ~/.pyenv
). To uninstall, just remove it:
$ rm -fr ~/.pyenv
and remove these three lines from .bashrc
:
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
If you need, export USE_GIT_URI to use git:// instad of https// for git clone.
WARNING still a very hacky proof of concept. Does not work with Python 3 at all yet and in Python 2 only with the use of the --egg parameter.
Install:
$ pip install --egg pyenv
In the current implementation updates and uninstallation works exactly like the github way.
NOTE: pip freeze
will not show pyenv as installed as this tool is just a
thin wrapper around the shell install script.
The project on github contains a setup for vagrant to test the installer inside a vagrant managed virtual image.
If you don't know vagrant yet: just install the latest package, open a shell in this project directory and say
$ vagrant up $ vagrant ssh
Now you are inside the vagrant container and your prompt should like
something like vagrant@vagrant-ubuntu-trusty-64:~$
The project (this repository) is mapped into the vagrant image at /vagrant
$ cd /vagrant
$ python setup.py install
$ echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(pyenv init -)"' >> ~/.bashrc
$ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
$ source ~/.bashrc
Pyenv should be installed and responding now.
(The MIT License)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。