1/8/2024 0 Comments Psycopg2 mac m1It would be great if you could tell me how to rectify this issue as i have started facing this when im trying to install pillow in my laptop.ĮRROR: Command errored out with exit status 1:Ĭommand: /Library/Frameworks/amework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize sys.argv = '"'"'/private/tmp/pip-install-u圆_oy_f/psycopg2/setup.py'"'"' _file_='"'"'/private/tmp/pip-install-u圆_oy_f/psycopg2/setup.py'"'"' f=getattr(tokenize, '"'"'open'"'"', open)(_file_) code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"') f.close() exec(compile(code, _file_, '"'"'exec'"'"'))' egg_info -egg-base /private/tmp/pip-pip-egg-info-gt2l5rrlĬwd: /private/tmp/pip-install-u圆_oy_f/psycopg2/įile "/private/tmp/pip-install-u圆_oy_f/psycopg2/setup.py", line 238ĮRROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Because of concurrency problems binary packages have displayed, psycopg2-binary has become a separate package, and from 2.8 it has become the only way to install the binary package. In version 2.7.x, pip install psycopg2 would have tried to install automatically the binary package of Psycopg. Pkg_resources.DistributionNotFound: The 'psycopg2>=2.2' distribution was not found and is required by odooįile "/Library/Frameworks/amework/Versions/3.8/bin/odoo", line 4, in įile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/_init_.py", line 3251, in įile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/_init_.py", line 3234, in _call_asideįile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/_init_.py", line 3263, in _initialize_master_working_setįile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/_init_.py", line 583, in _build_masterįile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/_init_.py", line 900, in requireįile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/_init_.py", line 786, in resolve Change in binary packages between Psycopg 2.7 and 2.8¶. Here are a few notes on the setup processes, but note that much of this may go out-of-date soon. Since Apple switched from Intel to ARM-based processors, I had to go through some hoops to get my development environment set up. Raise DistributionNotFound(req, requirers) I recently got a new MacBook Pro with the M1 chip. Needed = self.resolve(parse_requirements(requirements))įile "/Users/reehan/Odoo14/lib/python3.8/site-packages/pkg_resources/_init_.py", line 770, in resolve _import_('pkg_resources').run_script('odoo=14.0.post20201103', 'odoo')įile "/Users/reehan/Odoo14/lib/python3.8/site-packages/pkg_resources/_init_.py", line 3239, in įile "/Users/reehan/Odoo14/lib/python3.8/site-packages/pkg_resources/_init_.py", line 3222, in _call_asideįile "/Users/reehan/Odoo14/lib/python3.8/site-packages/pkg_resources/_init_.py", line 3251, in _initialize_master_working_setįile "/Users/reehan/Odoo14/lib/python3.8/site-packages/pkg_resources/_init_.py", line 567, in _build_masterįile "/Users/reehan/Odoo14/lib/python3.8/site-packages/pkg_resources/_init_.py", line 884, in require Other than that I only use this to manage my different virtual environments.ĭifferent versions of Python running inside different virtual environments that have more project-specific requirements.File "/Users/reehan/Odoo14/bin/odoo", line 4, in The one from Homebrew in /opt/homebrew/opt/ /bin/python3 which installs its packages inside ~/Library/Python/3.8/lib/python/site-packages/ for global to me things like one-off scripts that don’t really need to pull in dependencies and aren’t tied to business requirements or deliverables. The one from Mac OS that can be found in /usr/bin/python which will be used for system-wide or system level things. I prefer te separate Python into three separate levels: The two commands give you the latest versions of setuptools and pip in ~/Library/Python/3.8/bin/ instead of /usr/bin/python. Python3 -m pip install -upgrade -user pip Python3 -m pip install -upgrade -user setuptools
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |