同步操作将从 opsywt/pyenv-installer 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This tool installs pyenv and friends. It is inspired by rbenv-installer.
Git installed.
In general, compiling your own Python interpreter requires the installation of the appropriate libraries and packages. The installation wiki provides a list of these for common operating systems.
Once prerequisites have been installed correctly:
If you wish to install a specific release of Pyenv rather than the latest head, set the PYENV_GIT_TAG
environment variable (e.g. export PYENV_GIT_TAG=v2.2.5
).
curl https://pyenv.run | bash
pyenv.run
redirects to the install script in this repository and the invocation above is equivalent to:
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
After installing, follow these instructions to set up your shell environment.
You can now begin using pyenv.
If you need, export USE_SSH
to use git@github.com``(SSH pseudo-URL) instead of ``https://
for git clone. (Need to have ssh installled.)
pyenv update
pyenv
is installed within $PYENV_ROOT
(default: ~/.pyenv
). To uninstall, just remove it:
rm -fr ~/.pyenv
then remove these three lines from .bashrc
:
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
and finally, restart your shell:
exec $SHELL
Travis itself uses pyenv and therefore PYENV_ROOT
is set already. To make it work anyway the installation for pyenv-installer needs to look like this:
[...] - unset PYENV_ROOT - curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash - export PATH="$HOME/.pyenv/bin:$PATH" - pyenv install 3.5.2
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.
MIT - see License file.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。