How can spyder in the base environment access the package installed in a virtual environment?

Viewed 26

I use Anaconda as my platform to write Python code for data analysis. And I have successfully installed Pytorch, GDAL, etc. in the base environment, but the package 'geopandas' failed to be installed. I hence installed 'geopandas' in a virtual environment, say 'geo-env', in which Pytorch, GDAL, etc. were not installed.

Now I want to use the packages in both the base and the virtual environment in spyder (only installed in the base environment), but the package 'geopandas' in 'geo-env' cannot be loaded. How can I wwork out? Are there advices?

0 Answers
Related