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/ 

here screenshot

i have googled didn't found solution works me.

here answer helped me. these steps took:

  1. install homebrew # /usr/bin/ruby -e "$(curl -fssl https://raw.githubusercontent.com/homebrew/install/master/install)"
  2. install python3 , pip3 # brew install python3 (to check version installed run command # pip3 python3
  3. install virtualenv # pip3 install virtualenv
  4. creating virtualenv in install django. django applied particular env in case named test. command # virtualenv test
  5. activate virtualenv - have in folder created in case test , run command # source bin/activate
  6. install django # pip3 install django

and after steps able run command installing needed packages. hope helps.


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -