![]() ![]() Python -m ipykernel install -user -name myenv -display-name "Python (myenv)" If you are using pip to install ipykernel in a conda env, make sure pip is installed: Make sure you have ipykernel installed in your environment. If you want to have multiple IPython kernels for different virtualenvs or conda environments, you will need to specify unique names for the kernelspecs. ![]() Use IPython Kernels for Different Environments You can also try another work around way:ġ) type cmd in Powershell to switch to cmd line 2) run activate or deactivate command 3) type powershell to change back to Powershell. Here is one potential solution, if you want to keep using your PowerShell: Powershell activate and deactivate #626. NOTE: For Windows system, the activate and deactivate commands do not work in PowerShell, but work in cmd. Source deactivate py2 on Linux or Mac OSX Then the new environment can be activated through For example, a new environment for Python 2 (named py2, with Python 2.7) can be created through following command:Ĭonda create -n myenv numpy pandas scipy python = 3.5 For example, you might use Python 3.5 as your default distribution, but sometimes you would switch to Python 2 for some rare cases.Īnaconda comes with a graphical launcher that you can use to manage environments, install packages, start IPython, etc. You can find more details from Īll these stuff can be realized through conda command. Managing EnvironmentsĪnaconda can help create different isolated Python environments. On Windows, you are recommended not automatically add Anaconda to your system path, instead you can manually add ANACONDA_HOME with value of ‘C:\User\ your_user_name\ AppData\Local\Continuum\anacondX’ to the user varaibles and %ANACONDA_HOME% %ANACONDA_HOME%\Scripts %ANACONDA_HOME%\ Library\bin to the user path variable.Īnaconda comes with a package manager named conda, which lets you manage your Python distributions and install new packages. You might want to put Anaconda to your system path, so it will use Anaconda’s Python as the default python distribution. Downloading and Installingĭownload the right installer for your OS type (Window, OSX, Linux), OS version(32- or 64 bit), and Python version(2.7 or 3.5)įollow the instructions to install Anaconda If you did not start to use it yet, I highly recommend you a try. In this post, I describe some basic knowledge on Anaconda I have learned through my experience. Anaconda not only comes with various packages that I would like to use, such as NumPy, SciPy, matplotlib, pandas, scikit-learn, and Jupyter/IPython, but also provides more functionalities, like creating and managing environments, installing and updating packages, and so on. I decide to give Anaconda (by Continuum Analytics) a try, what it provides far exceed my expectation and I feel guilty did not try it earlier.Īnaconda is a free, cross-platform, and easy-to-install all-in-one analytic/scientific Python platform. As more and more Python packages I need to install for my daily work and learn, I get tired of searching and installing individual packages, especially on my Window system, like what I did in how to install scientific Python packages on Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |