Common uv fixes for intel macs

This commit is contained in:
Edward Donner
2025-10-11 19:13:58 -04:00
parent e7e9d7ac37
commit 444a1091fe
2 changed files with 16 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
[project]
name = "llm-engineering"
version = "0.1.0"
requires-python = ">=3.12"
requires-python = ">=3.10"
dependencies = [
"anthropic>=0.69.0",
"beautifulsoup4>=4.14.2",

View File

@@ -139,15 +139,25 @@ One thing to watch for: if you've used Anaconda before, make sure that your Anac
And if you still have any problems with conda and python versions, it's possible that you will need to run this too:
`conda config --set auto_activate_base false`
And now simply run:
And now simply run this:
`uv sync`
And marvel at the speed and reliability! If necessary, uv should install python 3.12, and then it should install all the packages.
If you get an error about "invalid certificate" while running `uv sync`, then please check Gotcha 6 above, and try this instead:
uv should install everything blazingly fast. If you hit any installation errors:
- First thing to try is this:
`uv python pin 3.11` and then `uv sync` again.
- If you get an error about missing wheels for torch (Intel Mac people, you might get this), then:
`uv python pin 3.11` then `uv add torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2` then `uv sync`
- If none of these work, then try:
`uv python pin 3.10` and then `uv sync`
- If you get an error about "invalid certificate" while running `uv sync`, then please check Gotcha 6 above, and try this instead:
`uv --native-tls sync`
And also try this instead:
- And also try this instead:
`uv --allow-insecure-host github.com sync`
And you now have a full spec environment!!
And other problems - message me.
But if no problems - you now have a full spec environment!!
___