If you use PyCharm or Jupyter, they will pass the path to the anaconda interpreter individually, so this is the end of the story.
But even if you do python -v
with cmd, you should get an error. Because the path doesn't pass.
Go through the following path from the control panel
C:\Users\hoge\Anaconda3
C:\Users\hoge\Anaconda3\Scripts
C:\Users\hoge\Anaconda3\Library\bin
Maybe now you can do ʻimport numpy`` even from cmd. If you have an additional module you want to use, install it with conda (more convenient than pip). List of frequently used commands in Anaconda
I will explain what makes me happy to be able to use the anaconda environment with cmd (in this age when there is a convenient IDE such as PyCharm).
Suppose you want to create a very small local app. If you don't host or don't care about DB, it's easier to handle the data locally as a csv file. At that time, I think that there are many people who are happier to write logic in python or c than in javascript or php (because you do not have to think about the front desk).
As a way to connect to the front, you can run a subroutine on js and execute a python program there.
When running a module such as numpy or pandas in a program when running that python, an error will occur if the anaconda environment cannot be used with cmd.
Because the subroutine is cmd.
With that feeling, giving the solemn name "service app" was an introduction to tips that are useful when developing super-inner ring local toys that are confusing.
Recommended Posts