pip - Getting Command "python setup.py egg_info" error when installing packages - Python -
hi new python , trying install , of it's packages. have installed python on mac homebrew. have used commands # brew install python3
. when run # pip3 python3
check if installed this
/library/frameworks/python.framework/versions/3.6/bin/pip3 /library/frameworks/python.framework/versions/3.6/bin/python3
so guess installed. install packages. doing installations locally on computer. install packages in test folder. annacomp: test anna$ pip install -r ./requirements.txt
error
command "python setup.py egg_info" failed error code 1 in /private/var/folders/pj/dj18qp9s3kjf4w1_pbpjsh2r0000gp/t/pip-build-i4ksue/psycopg2/
i have googled didn't found solution works me.
here answer helped me. these steps took:
- install homebrew
# /usr/bin/ruby -e "$(curl -fssl https://raw.githubusercontent.com/homebrew/install/master/install)"
- install python3 , pip3
# brew install python3
(to check version installed run command# pip3 python3
- install virtualenv
# pip3 install virtualenv
- creating virtualenv in install django. django applied particular env in case named
test
. command# virtualenv test
- activate virtualenv - have in folder created in case
test
, run command# source bin/activate
- install django
# pip3 install django
and after steps able run command installing needed packages. hope helps.
Comments
Post a Comment