I use Notepad++, sublime before Pycharm. For some reason, I find it hard to install packages on PyCharm. I searched online, still failed to solve the problems, and find it is highly recommended
to use Anocanda. And I would like to share how to install this again in my own blog.
What is Anaconda: (According to Wikipidea)
Anaconda is a
freemium open source distribution of the
Python and R programming languages for large-scale data processing, predictive analytics, and scientific computing, that aims to
simplify package management and deployment. Package versions are managed by the package management system conda.
Anaconda is a distribution of Python, it operates on Windows, Linux, Mac, and provides the function of managing of packages and the environment, and could solve the conexistence of multiple
versions of python, and make s it much easier to install Third-party packages. It has already contains the matching tools of python.
What is conda?
conda can be treated as a tool, as well as a executable command. Its core function incluses the management of packages and the environment. Its function in package management is similar to
pip, and the environment management allows users to change phthon among different versions.
Steps of Installing:
- download Anaconda and PyCharm
- Install Anaconda: I installed in the root location of E directly
(choose both "Add anaconda to my PATH" and "Register Anaconda as my default...)
- Install PyCharm
- Open command line
- Installing Python using Anaconda. (and some necessary(example) modules)
type the following codes:
cd /d (your path of installing Anaconda)
conda create --name python34 python=3.4
- activate the environment:
- install the modules: conda install package_name
- It is recommended to use pyCharm as coding environment, even though we can do it in Annocanda.
- open pycharm and let it use the current environment we created.
file-->settings-->project Interpreter -->
and you can see the packages we installed :
- Now you can start coding in the pyCharm!