Reputation: 53
I am using my own environment called datascience in anaconda. When I found that I need the Geopandas package and installed it using conda install, the Geopandas package was installed in the "root environment". Is there any way to install packages directly to the environment or copying from the root environment to another?
Thanks!
Upvotes: 4
Views: 9846
Reputation: 76
You can also achieve this by Anaconda GUI.
Go to environments tab.
select your preferred environment Right click and open in cmd .
Then install geopandas package from cmd window.
This way you will be isolating your package installation from root environment.
Upvotes: 0
Reputation: 19645
See the documentation for the conda install
command: https://conda.io/docs/commands/conda-install.html and the tutorial on managing packages: https://conda.io/docs/using/pkgs.html#install-a-package
In short, you can specify the environment to install to in the install command
conda install -n env-name package-name
or you can activate the environment, then install
conda activate env-name
conda install package-name
Upvotes: 2