In one of my projects I needed to use pyprimes package but it is not available in the environment so I was unable to run my script. Is there a way to install packages before running the scripts?
@olmezsoy You can pass a pip requirements file to the
neptune send command in order to get your libraries installed before executing the experiment in the cloud. You can read more in our documentation: http://docs.neptune.ml/config/experiment/#pip-requirements-file
I have a similar question regarding installing the lzop tool to compress files. After failure by adding lzop into requirement.txt, I tried following command lines to install lzop by callling subprocess.call and corresponding error messages showed up:
pip intstall lzop =>
["FileNotFoundError: [Errno 2] No such file or directory: 'lzop'", ' File "neptune/job_wrapper.py", line 138, in <module>', ' File "neptune/job_wrapper.py", line 134, in execute', ' File "past/builtins/misc.py", line 82, in execfile', ' File "preprocessing_dask.py", line 81, in <module>', ' File "python3.5/subprocess.py", line 947, in __init__', ' File "python3.5/subprocess.py", line 1551, in _execute_child']
sudo apt-get install lzop =>
FileNotFoundError: [Errno 2] No such file or directory: 'sudo'
I don’t know python library called
lzop. Do you mind
Installation in notebook:
!apt-get update !apt-get install liblzo2-dev !pip install python-lzo
For some reason, this
python-lzo could not work but I’ve already found another solution.