tl; dr Even if you put python in choco, you can pass environment variables by yourself. If you want to use pip, put it in yourself.
After installing python3.7 using choco to install ROS2, on powershell
$ python
When you enter, the Microsoft Store opens.
Also, when I try to install pip with choco, I cannot install it due to an error.
First, after installing python
$ refreshenv
And reflect it.
After this, again
$ python
If the Microsoft Store opens even if you enter, you need to enter the environment variables yourself. In my case, there was a folder called python (version) directly under the C drive, so set this to the path of the environment variable. Then, python became usable.
Next, when I try to install pip with choco, I get an error. I forgot to take the error log at this time, so I will omit it.
In this case, download the pip installation script from the net. Execute the following in the folder where python is installed.
$ wget "https://bootstrap.pypa.io/get-pip.py" -O "get-pip.py"
$ python get-pip.py
Then, the Scripts folder will be created in the folder, so register this in the path of the environment variable as well. Then you can use pip.
https://index.ros.org/doc/ros2/Installation/Eloquent/Windows-Install-Binary/ https://qiita.com/kangetsu121/items/b6352b547cd32e71bc65#%E5%8F%82%E8%80%83 https://bamch0h.hatenablog.com/entry/2019/09/29/162601
Recommended Posts