quasiben / condacreate Goto Github PK
View Code? Open in Web Editor NEWProgrammatically create Conda environments
License: BSD 3-Clause "New" or "Revised" License
Programmatically create Conda environments
License: BSD 3-Clause "New" or "Revised" License
To make a conda environment relocatable is it sufficient to use the --copy
flag? What other tricks does this library use if I want to do this by hand?
In [1]: import condacreate
In [2]: c = condacreate.CondaCreator()
In [3]: c.create_env('myenv', ['python', 'distributed', 'dask'])
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-3-91974c0aa6ba> in <module>()
----> 1 c.create_env('myenv', ['python', 'distributed', 'dask'])
/home/mrocklin/Software/anaconda/lib/python3.5/site-packages/condacreate-0+untagged.2.g42c0a2d-py3.5.egg/condacreate/__init__.py in create_env(self, env_name, packages, remove)
190 env_path = self.find_env(env_name)
191 else:
--> 192 env_path = self._create_env(env_name, packages, remove)
193
194 return self.zip_env(env_path)
/home/mrocklin/Software/anaconda/lib/python3.5/site-packages/condacreate-0+untagged.2.g42c0a2d-py3.5.egg/condacreate/__init__.py in _create_env(self, env_name, packages, remove)
142 logger.debug(' '.join(cmd))
143
--> 144 shell_out(cmd)
145
146 env_python = os.path.join(env_path, 'bin', 'python')
/home/mrocklin/Software/anaconda/lib/python3.5/site-packages/condacreate-0+untagged.2.g42c0a2d-py3.5.egg/condacreate/utils.py in shell_out(cmd, **kwargs)
37 result of shell command
38 """
---> 39 return check_output(cmd, **kwargs).decode('utf-8')
/home/mrocklin/Software/anaconda/lib/python3.5/subprocess.py in check_output(timeout, *popenargs, **kwargs)
624
625 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
--> 626 **kwargs).stdout
627
628
/home/mrocklin/Software/anaconda/lib/python3.5/subprocess.py in run(input, timeout, check, *popenargs, **kwargs)
691 kwargs['stdin'] = PIPE
692
--> 693 with Popen(*popenargs, **kwargs) as process:
694 try:
695 stdout, stderr = process.communicate(input, timeout=timeout)
/home/mrocklin/Software/anaconda/lib/python3.5/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)
945 c2pread, c2pwrite,
946 errread, errwrite,
--> 947 restore_signals, start_new_session)
948 except:
949 # Cleanup if the child failed starting.
/home/mrocklin/Software/anaconda/lib/python3.5/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1549 else:
1550 err_msg += ': ' + repr(orig_executable)
-> 1551 raise child_exception_type(errno_num, err_msg)
1552 raise child_exception_type(err_msg)
1553
FileNotFoundError: [Errno 2] No such file or directory: '/home/mrocklin/Software/anaconda/lib/python3.5/site-packages/condacreate-0+untagged.2.g42c0a2d-py3.5.egg/condacreate/tmp_conda/miniconda/bin/conda'
Operating from master. Python 3.5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.