cbirdlab / charybdis

Metabarcoding Pipeline
GNU General Public License v3.0
1 stars 0 forks source link

Install Obitools in README.md Doesn't Work #47

Open cbird808 opened 3 years ago

cbird808 commented 3 years ago

the command below is unrecognized, so I must have to do something first such that virtualenv-2.7 is a valid command

cbird@3950x:~/OBI$ virtualenv-2.7 OBI-env
virtualenv-2.7: command not found

cbird@3950x:~/OBI$ virtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--clear-app-data] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed]
                  [--activators comma_sep_list] [--clear] [--system-site-packages] [--symlinks | --copies] [--download | --no-download] [--extra-search-dir d [d ...]] [--colorama version] [--progress version] [--pep517 version]
                  [--urllib3 version] [--six version] [--distro version] [--wheel version] [--chardet version] [--ipaddr version] [--packaging version] [--webencodings version] [--pytoml version] [--idna version] [--contextlib2 version]
                  [--appdirs version] [--certifi version] [--retrying version] [--requests version] [--CacheControl version] [--html5lib version] [--pyparsing version] [--setuptools version] [--pkg_resources version] [--lockfile version]
                  [--distlib version] [--msgpack version] [--pip version] [--no-colorama] [--no-progress] [--no-pep517] [--no-urllib3] [--no-six] [--no-distro] [--no-wheel] [--no-chardet] [--no-ipaddr] [--no-packaging] [--no-webencodings]
                  [--no-pytoml] [--no-idna] [--no-contextlib2] [--no-appdirs] [--no-certifi] [--no-retrying] [--no-requests] [--no-CacheControl] [--no-html5lib] [--no-pyparsing] [--no-setuptools] [--no-pkg_resources] [--no-lockfile]
                  [--no-distlib] [--no-msgpack] [--no-pip] [--symlink-app-data] [--prompt prompt] [-h]
                  dest
virtualenv: error: the following arguments are required: dest
ekrell commented 3 years ago

Check virtualenv version

virtualenv --version

If it says anything about python 2.7, done. Follow the Readme, but instead of virtualenv2.7, you just have virtualenv

Else, you need to install virtualenv (for python2.7)

Install pip2 to install python2.7 packages:

# Install python2 is not already
sudo apt install python2

# Install pip2
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
sudo python2 get-pip.py

# Check version
pip2 --version

Install virtualenv

pip2 install virtualenv

# Check version
virtualenv --version
ekrell commented 3 years ago

Actually I think virtualenv is generic. To use python2, replace

virtualenv-2.7 OBI-env

with

virtualenv -p python2 OBI-env

But this is much like what I think you already tried. Maybe 2.7.15 is a problem? Want whatever the system install for python2 by default.