I want to export my conda environment by using conda env export > xxx.yml
,but it doesn't work.
My conda environment is created by specify the --prefix
, it names "E:/Envs/DRF".To export it, I use conda activate E:/Envs/DRF
make it activated.And then I use conda env export > xxx.yml
,it doesn't work and I get some Error below.
Firstly,activate it:
E:\WorkSpace\PyCharm\CET6Cat>conda activate E:/Envs/DRF
And then I wanna export it to .yml file:
(E:\Envs\DRF) E:\WorkSpace\PyCharm\CET6Cat>conda env export > environment.yml
WARNING: The conda.compat module is deprecated and will be removed in a future r
elease.
WARNING: The conda.compat module is deprecated and will be removed in a future r
elease.
CondaValueError: Invalid environment name: 'E:\Envs\DRF'
Characters not allowed: ('/', ' ', ':')
It doesn't work!
Create a new conda environment from a list of specified packages. To use the created environment, use 'conda activate envname' to look in that directory first. This command requires either the -n NAME or -p PREFIX option.
Try
conda env export --prefix /home/..../tfpy37 > dependency.yml
Here tfpy37
is my conda environment name located in my ubuntu directory /home/...
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With