[PYTHON] Note on building your own Miniconda environment

The beginning of the matter

Anaconda is fine, but I'm thinking of starting TensorFlow in the customer's LAN environment (on-premises) with Miniconda and processing it. After installing Miniconda, I will forget the command I typed, so make a note here as a reminder.

Operating environment

Windows10 Anaconda installed Miniconda installed PyCharm installed

Pre-operation

Please refer to the link below. Directions for operating Miniconda after a long time

Below, the executed command

Create a virtual environment
conda create -n [Virtual environment name] python=3.6
  (Note 1)
Enter the virtual environment
conda activate [Virtual environment name]
Check the installed libraries
conda list
#Install the library to use
conda install numpy
conda install pandas
conda install tensorflow
conda install keras
ttps://anaconda.Check the download site on org
conda install -c menpo opencv
  (Note 2)
conda list
conda install -c conda-forge pdf2image
conda install -c brianjmcguirk pyocr
python -m pip install pyarmor
 (Note 3)

conda install openpyxl       #Added a package to operate excel
conda install pywin32

(Caution 1) If python = 3.7, an error will occur when installing tensorFlow, so it seems to be a standard to set python = 3.6. (Caution 2) -c conda-forge specifies the channel.

conda install -c conda-forge opencv

Then, the following command will result in an error.

cv2.namedWindow("img", cv2.WINDOW_NORMAL)

So

conda install -c menpo opencv

And said. (Many sites recommend conda-forge, but I got an error in my case, so I used menpo.) It is better to check it on anaconda.org before entering it. (Caution 3) When I check pyramor on anaconda.org, nothing comes out, so I have no choice but to pip install ... However, in my case, pip install pyarmor resulted in an error. Specifically, when trying to obfuscate with pyrarmor, Fatal error in launcher: Unable to create process using Error will appear, so in order to avoid this, it is better to do it like this. Reference) https://stackoverflow.com/questions/24627525/fatal-error-in-launcher-unable-to-create-process-using-c-program-files-x86

Impressions

That's 5 gigabytes.

Addendum) How to install additional packages on Miniconda on usb

In addition, it's a personal note ...

#Match the path of the Miniconda to operate.(In my case F: Drive)
#This time, I want to conda install directly to Miniconda on usb.

C:\Users\[username]>F:\Miniconda3\Scripts\activate.bat


(base) C:\Users\[username]>conda activate test

(test) C:\Users\[username]>conda info
    (Check it just in case)

     active environment : test
    active env location : F:\Miniconda3\envs\test
            shell level : 2
       user config file : C:\Users\[username]\.condarc
 populated config files : C:\Users\[username]\.condarc
          conda version : 4.7.12


(test) C:\Users\[username]>conda list
Make sure the package you want to include is not in the list


(test) C:\Users\[username]>conda install keras
 

If usb already has Miniconda I think there are two choices, whether to overwrite 5GB on usb or add it in this way.

Recommended Posts

Note on building your own Miniconda environment
Building a Python environment on Ubuntu
Try implementing k-NN on your own
(Note) Notes on building TensorFlow + Flask + Nginx environment with Docker Compose
Django Crispy Tutorial (Environment Building on Mac)
Create a python environment on your Mac
Building a LaTeX environment on Chrome OS
[Python] Register your own library on PyPI
Import your own functions on AWS Glue
Building an environment for "Tello_Video" on Raspbian
Building an environment for "Tello_Video" on Windows
(Note) Notes on building TensorFlow environment with Docker Compose (only one container)
Build a LAMP environment on your local Docker
[Note] Python environment construction on rental server "CORESERVER"
Linux C / C ++ Build your own library creation environment
Building an environment for matplotlib + cartopy on Mac
Build a Python development environment on your Mac
Building a Python environment on a Sakura VPS server
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
Take your own peak memory usage on Linux & Python
Building an environment for "Tello_Video" on Mac OS X
Building a TensorFlow environment that uses GPU on Windows 10
Use the CASA Toolkit in your own Python environment
Build a Python environment on your Mac using pyenv
Procedure for building a CDK environment on Windows (Python)
Create your own exception
Let's get started with Python ~ Building an environment on Windows 10 ~
Building a Jupyter Lab development environment on WSL2 using Anaconda3
[Note] List of basic commands for building python / conda environment
A note on how to load a virtual environment in PyCharm
(Note) How to pass the path of your own module
Building an environment to execute python programs on AWS EC2
Until building a Python development environment using pyenv on Ubuntu 20.04
Build a python environment on CentOS 7.7 for your home server