![]() conda create -n python2.7 python=2.7Įcho 'conda activate python2.7' > ~/.bash_profile # or. you can also install it with shell script。Īfter install and add it to the environment variables, tap the script below to install python 2.7 and set it as default python environment, and restart creator to adapt the update. On the official site of conda can you choose the way to install conda. Miniconda is a cleaner and small size of anaconda, it requires less space. Restart your cocos creator to adapt the update. Pyenv global 2.7.18 # Tap your version specified. pyenv install 2.7.18 # Install 2.7.18, you can also install other version of python2. Note: If /opt/homebrew/bin is not added into the environment variables, you may see command not found error, and you should add it into the PATH by yourself. When the installation is finished, you can tap pyenv to get neccessary help. pyenvĭevelopers can install pyenv by using Homebrew. Summary IDLE is the environment in which we will be spending most of our time. including our hello world example from earlier in the tutorial. You may only need one version control tool to avoid environment conflits. To check if you have python installed on a Linux or Mac, then on linux open the command. Note: When you install python by using version control tools, it will set a default python environment, and if it's python3, the editor will throw an error. Install python by using version control tools.ĭevelopers can also install pythons by using conda or pyenv, good tools to switch python version. You can also see shortcuts in /usr/local/bin, if it's already in your PATH, you can build the game without restart the creator. ![]() The newest version of python2 is 2.7.18, updated 2020.4.20。ĭownloading macOS 64-bit installer to fit Mac x86_64, which also can be used by Mac with arm architecture, with M1, M2 chips.Īfter installation, you may able to see all contents in /Library/Frameworks/amework/Versions/2.7 as a default path. Visit the download page of, and you can see all available version of python. According to this uncertain behavior on developer's computer, we offer a short tutorial to help you install python 2.7 to make sure that you can work fine with Cocos Creator 2.4.x. Note: After MacOS Monterey 12.4, Mac no longer supports python 2.7 as a part of default developement environment, but the old python 2.7 might still exist if you have install some modules and frequently use it. Resource management considerations - meta files V2.4 Custom Project Build Process Upgrade GuideĪ short tutorial to install python on MacOS
0 Comments
Leave a Reply. |