![]() Without a doubt, installing Python is the hardest thing about teaching courses with Python. I wrote this post because I feel the pain of beginners all the time and I try and ease that. Post-running this and for future Python 3.7 maintainance it’s worth running occassionally (or now if you are reading this post after the end of April 2020). If though you’d rather set up a virtual environment (assuming you have one called p圓7):Ĭonda env update -n p圓7 -file geospatial_python.yamlĮither way you just need to wait now for Anaconda to do the installation. Note: You can also complete the installation on Windows using alternative distributions, such as Anaconda, but this tutorial covers only official distributions. Open the Anaconda prompt and, assuming you want your base environment setup, type:Ĭonda env update -n base -file geospatial_python.yml If you have accepted the default (windows) installation it should be: C:\Users\ username If you download Python 2.7, your code may be incorrect to our graders. This will mean that in one line you should be able to get up and running.ĭownload the file ( geospatial_python.yml) and save it to the location where you have installed anaconda. You will be downloading the Python 3.5 version. I have built a yml file with all the Geospatial, Computer Vision, Machine Learning Libraries that you should need. Open the prompt and check your version: Boom! Python 3.7.7! Allow yourself ~20mins to uninstall and reinstall. Then download the latest version and install. If you want to change your base environment, and at somepoint I think you are going to want to do that, then the only option I found was to uninstall your Anaconda version. This can be obtained by installing the Anaconda Distribution (a free Python distribution for data science), or through miniconda (minimal distribution only. You can do this with a command such as (where p圓7 is the name of my new virtual environment): conda create -name p圓7 python=3.7 To create a virtual environment, using the Python version that you want, is a reasonable approach. ![]() If you want to use a different version of Python, for example Python 3.5, simply create a new environment and specify the version of Python that you want. When you create a new environment, conda installs the same Python version you used when you downloaded and installed Anaconda. Basically the documentation says you cannot do it, unless you want to create a virtual environment: Referring to the answer of Solly, I have Windows 10, python 3.5.3, Anaconda 64bit, in the Anaconda prompt I entered: conda install -c conda-forge basemap1.0.8.dev0 conda install -c conda-forge basemap-data-hires. I tried a number of ways including the following commands: conda update python conda install python=3.7 I have now come to a natural break in projects and I want to upgrade my version to Python 3.7 – which is the default version that Anaconda uses (3.7.7 as of the start of April 2020). 18 months ago I wrote about setting up Anaconda for Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |