On Windows 10, my user configuration file was in C:\Users\\, and I just added the above text to the end of it. This may be useful, however, to avoid permissions errors if sharing environments that exists in protected user areas. It does not appear to be possible to make a specific, named environment available.Īs has been pointed out, you can create an environment in a specific location using the -p flag, and then add the parent directory to the configuration file, but this is not a requirement. This makes all the environments (subfolders within) available to the user. I was working in C:\Users\garyh\Documents so the output YAML file will be there. The key here is adding the path to the folder containing the environment(s) to the user’s conda configuration file. This can be achieved by the below command: conda env export > scikitlearnenv.yml In the Command Prompt: This then outputs all YAML files to the location specified to the left. See Specifying a location for an environment or run conda create -help for information on specifying a different path. Here’s another one that looks useful: Answer #2: Tip By default, environments are installed into the envs directory in your conda directory. Then, they should be able to see the environment when running conda env list. If you really want to use a shared environment where every user can access, then you have to use the -p or -prefix option in your create: conda create -p C:/full/public/path/to/p圓5 python=3.5Īnd then instruct your users to add the public path ( C:/full/public/path/to) to their conda config file. Then you send the users the yml file and have them build their own environment using the yml: conda env create -f environment.yml ![]() The preferred approach is that after you have created an environment, you export it as a yml file: conda env export > environment.yml 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. Here’s an excerpt from that link that seems to be sound: The stackoverflow website generally has good advice. I searched for “conda share environment between users” and found what looks like some good advice here on ‘stackoverflow’: How to share an Anaconda Python environment between multiple users? I don’t work with python and conda myself so I don’t have an authoritative answer. The open-source Anaconda Distribution is the easiest way to perform Python/R data science and machine learning on Linux, Windows, and Mac OS X.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |