conda env export -n NOx
name: NOx
channels: !!python/tuple
drew@drew-ThinkPad-T460:~$ conda env upload NOx
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:
https://github.com/conda/conda/issues
Current conda install:
platform : linux-64
conda version : 4.2.7
conda is private : False
conda-env version : 4.2.7
conda-build version : 1.21.3
python version : 3.5.2.final.0
requests version : 2.10.0
root environment : /home/drew/anaconda3 (writable)
default environment : /home/drew/anaconda3
envs directories : /home/drew/anaconda3/envs
package cache : /home/drew/anaconda3/pkgs
channel URLs : https://repo.continuum.io/pkgs/free/linux-64/
https://repo.continuum.io/pkgs/free/noarch/
https://repo.continuum.io/pkgs/pro/linux-64/
https://repo.continuum.io/pkgs/pro/noarch/
config file : None
offline mode : False
$ /home/drew/anaconda3/bin/conda-env upload NOx
Traceback (most recent call last):
File "/home/drew/anaconda3/lib/python3.5/site-packages/conda_env/cli/main_upload.py", line 70, in execute
env = from_file(args.file)
File "/home/drew/anaconda3/lib/python3.5/site-packages/conda_env/env.py", line 82, in from_file
raise exceptions.EnvironmentFileNotFound(filename)
conda_env.exceptions.EnvironmentFileNotFound: Conda Env Exception: environment.yml file not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/drew/anaconda3/lib/python3.5/site-packages/conda/exceptions.py", line 472, in conda_exception_handler
return_value = func(*args, **kwargs)
File "/home/drew/anaconda3/lib/python3.5/site-packages/conda_env/cli/main_upload.py", line 78, in execute
raise exceptions.CondaEnvRuntimeError(msg)
conda_env.exceptions.CondaEnvRuntimeError: Runtime error: Unable to locate environment file: environment.yml
Please verify that the above file is present and that you have
permission read the file's contents. Note, you can specify the file
to use by explictly adding --file=/path/to/file when calling conda env
create.
I think you need to create an environment.yml
file to upload. So, can run
$ conda env export -n NOx > environment.yml
$ less environment.yml
name: NOx
channels: !!python/tuple
- defaults
dependencies:
- _nb_ext_conf=0.3.0=py27_0
- anaconda-client=1.5.1=py27_0
- backports=1.0=py27_0
- backports_abc=0.4=py27_0
...
$ conda env upload NOx
Most helpful comment
I think you need to create an
environment.yml
file to upload. So, can run