Source From Here
QuestionI have Anaconda 5.1 Python distribution installed (by the system admin) on Windows 10, for all users. I can create an environment and then view the available environments:
When I log in as a different user, however, only the base environment is visible/available. How can I create an environment and make it available to all users of the system?
The documentation discusses multi-user installations, but I cannot see how to make environments available to other users.
How-To
(Installation of conda) I would shy away from sharing environments with other users, because if they don't know what they are doing, they could add packages that could conflict with other packages and/or even delete packages that another user might need. The preferred approach is that after you have created an environment, you export it as a yml file. (doc - sharing an environment) For example:
Then you send the users the yml file and have them build their own environment using the yml:
If you really want to use a shared environment where every user can access, we have to make sure the user has proper right to access the created conda virtual environment:
Then let's switch to another user `john` to make sure he can use our created conda virtual environment:
So far so good, let's use first account root to verify that the package installed by john account can be used by root too:
Great! Everything works.
Supplement
* FAQ - how to specify new environment location for conda create
沒有留言:
張貼留言