![]() On the new interface, choose Conda Environment = ". ![]() Modify the name of the project, then select Project Interpreter "EXISTING Interpreter". Open Pycharm and select Create New Project conda create -n EnvName python=versionCreate a Python environment for a version, such as I am using conda create -n test1p圓.7 python=3.7Created a environment called Test1P圓.7 The other may be used as follows: # Restore default source addressīefore this, we should use it first. ![]() # Set the searcher display channel address # Add Tsinghua Pytorch mirror (may be used, optional) Type the following command directly on the command line: # Add Tsinghua Conda Source Mirror Note that Tsinghua's mirror stopped service on April 16, 19, but on July 21, 19th, it has been recovered and can continue to be used. We modify it to domestic mirrored, here I chose Tsinghua Mirror. Modify the source of CONDA: Anaconda default source address is abroad, the speed of download may be slow. # View the package in the specified environment # View the package in the current environment Package management part of the command # Package management # Create a new environment (Version is replaced with the corresponding Python version number) # View all current environments (* indicating the current environment) ![]() Record an ANACONDA-related command (environment management part) # Environmental management bash_profileĪdd the following statement to save exit (address in path is the address of the bin file) export PATH="/opt/anaconda3/bin:$PATH"Įnter it in the command line, so that the files just take effect right source $HOME/.bash_profileĪgain test again conda -version, Found successfully display version number (Record again, in the "Display" of the Finder, select the "Display path", you can display the current location)
0 Comments
Leave a Reply. |