Anaconda Tutorial by Aryadrj
Anaconda Tutorial by Aryadrj
1. How to create new virtual environment in Anaconda?
- conda create --name venv
- Enter y
- Create a Python 2 environment named py2, install Python 2.7:
- conda create --name py2 python=2.7
- Create a new environment named py3, install Python 3.5:
- conda create --name py3 python=3.5
2. How to activate and deactivate virtual environment in anaconda ?
- To activate anconda
- conda activate venv
- To deactivate anaconda
- conda deactivate
3. How to install panda in Anaconda?
- conda install pandas
- and wait for sometimes and enter y.
- To install a specific pandas version:
- conda install pandas=0.13.1
4. How to install Flask in Anaconda?
- conda install -c anaconda flask
- Flask is a microframework for Python based on Werkzeug and Jinja2. It's intended for getting started very quickly and it was also developed with best intentions in mind.
5. ModuleNotFoundError: No module named 'sklearn.externals.six'
- Downgrade your scikit-learn version:
- In jupyter notebook, type !pip install --upgrade scikit-learn==0.20.3
- In Terminal,type pip install --upgrade scikit-learn==0.20.3
- In anaconda, type conda install scikit-learn=0.20.3
- After that the code will recognize the sklearn.external.six module.
- ModuleNotFoundError: No module named 'sklearn.linear_model._logistic'
- conda install scikit-learn==0.21.3
- (note : python version should be between 3.5 and 3.7.)
6. How to run the project in Anaconda?
- Python app.py
7. How to merge two virtual environment?
- conda install -c conda-forge conda-merge
8. How to install flask_wtf module in Anaconda?
(ModuleNotFoundError: No module named 'flask_wtf')
- conda install -c anaconda flask-wtf
9. How to install colorama module in Anaconda?
conda install -c anaconda colorama
10. How to install opencv module in Anaconda?
conda install -c conda-forge opencv
11. ModuleNotFoundError: No module named 'imutils'
conda install -c conda-forge imutils
11. ModuleNotFoundError: No module named 'keras'
conda install -c conda-forge keras
or
conda install keras
Comments
Post a Comment