[PYTHON] Road to the Wizard: 4th Step

Python version control with Pyenv

For the time being, if pyenv is not installed, it will not be talked about, so I will git clone it. sudo git clone git://github.com/yyuu/pyenv.git ./pyenv

Great guidance was given to create directories that might be needed to run pyenv. sudo mkdir -p ./pyenv/versions ./pyenv/shims

I'm not sure how to set the path no matter how far I go For the time being, I added this and it worked! ** This was added to .bash_profile ** if [ -f ~/.bashrc ]; then ~/.bashrc fi

Use pyenv commands

For the time being, all you have to do is clear the path settings and use the pyenv command! Easy! I thought Is there an error (´ ・ ω ・ `)?

I wrote that I do not have the authority to create a directory to read the error, so I forcibly changed the ownership of the directory where pyenv is written with root authority to the working user. Then reboot pyenv install 3.4.3 When I executed it, I was able to install it! !! !! (* ´∀ ` *)! !! !!

The rest is just applied to the whole pyenv global 3.4.3 You can use Python3 with!

I haven't made anything decent except NodeJS other than Ruby, so I'll have fun learning the basics of Python grammar.

Recommended Posts

Road to the Wizard: 4th Step
Road to the Wizard: 7th Step
Road to the Wizard: Step 8 (Interpret How to become a Hacker)
The road to Pythonista
The road to Djangoist
The road to download Matplotlib
Today's AtCoder ~ The Road to the Brown Coder ~
The road to compiling to Python 3 with Thrift
The first step to getting Blender available from Python
Road to LPIC-1 acquisition
The first step to creating a serverless application with Zappa
[Python] The first step to making a game with Pyxel
A road to intermediate Python
How to use the generator
Dot according to the image
[Introduction to cx_Oracle] (8th) cx_Oracle 8.0 release
How to use the decorator
How to increase the axis
How to start the program
The 15th offline real-time how to write reference problem in Python
The 17th Offline Real-time How to Solve Writing Problems in Python
The road to installing Python and Flask on an offline PC
The road to web application development is a long way off
The 14th offline real-time how to write reference problem in python
Try to implement and understand the segment tree step by step (python)
The 18th offline real-time how to write reference problem in Python