![]() NOTE: the anaconda path for Win 10 is usually D:/Anaconda3/envs//python.Now you can check the versions of python by run different build using the following codes.For example, I named as py27 and p圓6 and they have appeared as shown in step 1.Now you can see the files you just saved have appeared in the "Build System".Repeat steps 1 to 3 to setup for the other python environment.The path on the 4th line is the path to the python environment we created above. Type the following JSON format code as follows.Step 3: setup Sublime Text build file on Win 10 When inside your base/root directory, you can use conda info -envs to check the current environments installed on your computer as follows:.Once the 2.7 environment is created, again you can use activate py27 to get into the environment and use conda install or pip to install packages as instructed above.Now the python 3.6 environment is fully prepared, we can add the python 2.7 environment using conda create -n py27 python=2.7.Use deactivate to quit current environment.You can use python command to check the version of python and quit() command to quit the python environment as follows:.For example, wxpython can be install using pip command as follows (i.e.Use activate p圓6 to get into the environment you just created, and use pip to install the packages that cannot be installed with "conda".NOTE that you can also create the environment using conda create -n first and then install all the necessary packages.Since it is a clone from the base, all the packages you installed can be used here.Once the packages are installed, you can create your own brand-new python 3.6 environment using conda create -n p圓6 –clone base as the following picture indicates.If there are some packages that cannot be installed using conda command, you can use pip as described in the following steps.For instance, you can install multiple packages at the same time using conda install Django flask tornado twisted.Now you can install the missing packages that you need using conda install When the Anaconda Prompt opens, it is in the default directory with many packages pre-installed.Note that it is the Anaconda Prompt not the windows command line. Open Anaconda Prompt to create new environment.Step 2: setup python environment with Anaconda on Win 10 If you encounter any difficulties during installation, google and stackoverflow are your best friend:).For example, if you are working with python 3.6 most of the time, you should download the 3.6 version otherwise, you can download the 2.7 version.Choose the version that you use most frequently. Step 5: setup Sublime Text build file on Mac.Step 4: setup python environment with Anaconda on Mac.Step 3: setup Sublime Text build file on Win 10.Step 2: setup python environment with Anaconda on Win 10. ![]() The installation of Anaconda will not be covered here as there are many tutorials online already. ![]() It is way faster and more efficient than many other IDES.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |