error when pip install in conda
iT-Boyer opened this issue · 3 comments
iT-Boyer commented
conda env
python 3.7
pip install --upgrade "knowledge-repo[all]"
Failed to build knowledge-repo flask-login flask-principal flask-mail sqlalchemy inflection blinker alembic regex Mako
Installing collected packages: regex, dateparser, cooked-input, click, itsdangerous, werkzeug, flask, flask-login, blinker, flask-principal, flask-mail, sqlalchemy, Flask-SQLAlchemy, Mako, python-editor, alembic, Flask-Migrate, gunicorn, inflection, pillow, knowledge-repo
Running setup.py install for regex ... error
ERROR: Command errored out with exit status 1:
command: /Users/admin/anaconda3/envs/qq/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/54/dj483jpn7k5_bfwlglg538vw0000gn/T/pip-install-tb0ohbg4/regex/setup.py'"'"'; __file__='"'"'/private/var/folders/54/dj483jpn7k5_bfwlglg538vw0000gn/T/pip-install-tb0ohbg4/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/54/dj483jpn7k5_bfwlglg538vw0000gn/T/pip-record-acauh54w/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/54/dj483jpn7k5_bfwlglg538vw0000gn/T/pip-install-tb0ohbg4/regex/
Complete output (50 lines):
running install
running build
...
bulam commented
Sorry about the delay. Are you still running into this issue? Have you tried installing with a different virtual env?
naoyak commented
@bulam I just ran into this too. Assuming this is on Mac OS the problem is that the regex package doesn't have Mac wheels available for all Python versions. We can probably track down the dependency somehow, but one option is to install regex
through conda.