Title: Homebrew installations of python throw an error on building · Issue #46 · apache/datasketches-python · GitHub
Open Graph Title: Homebrew installations of python throw an error on building · Issue #46 · apache/datasketches-python
X Title: Homebrew installations of python throw an error on building · Issue #46 · apache/datasketches-python
Description: When building with a homebrew installation of python an error is raised. We can avoid this by installing in a virtual environment as suggested by the error message. For example >> which python3 >> /opt/homebrew/bin/python3 >> python3 -m ...
Open Graph Description: When building with a homebrew installation of python an error is raised. We can avoid this by installing in a virtual environment as suggested by the error message. For example >> which python3 >> ...
X Description: When building with a homebrew installation of python an error is raised. We can avoid this by installing in a virtual environment as suggested by the error message. For example >> which pytho...
Opengraph URL: https://github.com/apache/datasketches-python/issues/46
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Homebrew installations of python throw an error on building ","articleBody":"When building with a homebrew installation of python an error is raised. We can avoid this by installing in a virtual environment as suggested by the error message. For example\r\n```\r\n\u003e\u003e which python3\r\n\u003e\u003e /opt/homebrew/bin/python3\r\n\r\n\u003e\u003e python3 -m pip install .\r\n\u003e\u003e error: externally-managed-environment\r\n\r\n× This environment is externally managed\r\n╰─\u003e To install Python packages system-wide, try brew install\r\n xyz, where xyz is the package you are trying to\r\n install.\r\n\r\n If you wish to install a non-brew-packaged Python package,\r\n create a virtual environment using python3 -m venv path/to/venv.\r\n Then use path/to/venv/bin/python and path/to/venv/bin/pip.\r\n\r\n If you wish to install a non-brew packaged Python application,\r\n it may be easiest to use pipx install xyz, which will manage a\r\n virtual environment for you. Make sure you have pipx installed.\r\n\r\nnote: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.\r\nhint: See PEP 668 for the detailed specification.\r\n```\r\n\r\nIt is easy to resolve this by doing (in an appropriate directory, eg. assume the following is in project root).\r\nI propose to add the following notes to the build and installation part of the readme.\r\n```\r\npython3 -m venv venv\r\nsource venv/bin/activate\r\npython3 -m pip install .\r\npython3 -m pip install tox\r\ntox\r\n```\r\n\r\n","author":{"url":"https://github.com/c-dickens","@type":"Person","name":"c-dickens"},"datePublished":"2024-04-05T16:51:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/46/datasketches-python/issues/46"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e9667d6c-7517-d7a4-7221-47e38286026f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DEC:35DC3D:19F048:23C944:698E0896 |
| html-safe-nonce | e155526dfd2022845a5cfdb66f4643dd499d743cc1d4a73d3101a4d5db2f63ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REVDOjM1REMzRDoxOUYwNDg6MjNDOTQ0OjY5OEUwODk2IiwidmlzaXRvcl9pZCI6IjU5NzM1OTY5NTI2NDE1MzgxOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 880d8aa6f21c9bf1db3f97ef512ce2336d4e0cce172fdc70436b3f1c0e2dfab0 |
| hovercard-subject-tag | issue:2228450733 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/datasketches-python/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a866c834595f1e9e975c11d8b4580b0098ee1a2e59b694fdd941360deb6368d0/apache/datasketches-python/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a866c834595f1e9e975c11d8b4580b0098ee1a2e59b694fdd941360deb6368d0/apache/datasketches-python/issues/46 |
| og:image:alt | When building with a homebrew installation of python an error is raised. We can avoid this by installing in a virtual environment as suggested by the error message. For example >> which python3 >> ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | c-dickens |
| hostname | github.com |
| expected-hostname | github.com |
| None | 70a88bfe6d9639434ae7f5a46d15c336b8884978a51526bc55fc57d848f1e3c1 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/datasketches-python git https://github.com/apache/datasketches-python.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 685709717 |
| octolytics-dimension-repository_nwo | apache/datasketches-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 685709717 |
| octolytics-dimension-repository_network_root_nwo | apache/datasketches-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2519b16db5550494a653f9a8837c14ef7df80804 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width