Hi everyone,
I have many problems with Python on my Mac, i am a French students in Mathematics and i need Python working on my mac to do some practical works. I use VSCode to write code but i have like 5 differents versions of Python (some are old) at different localisation in my mac, i want to upgrade to Python 3.13 and probably i need to erase the older versions. I would like also to have the Manim librairy to do some Mathematic animations.
Thanks to the person who will help me ๐
#๐ problems of different versions of python on my Mac M1
26 messages ยท Page 1 of 1 (latest)
@opaque thunder
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
just download the version u need
shouldnt need to delete old ones
ok i retest with this version
It seems that you already got Python 3.13 via homebrew, so why not just use that for your purpose? The old versions are related to Xcode, miniconda/anaconda etc. You shouldn't uninstall them unless you don't need them at all.
i don't need older version i think, the new one can run older script no ?
i am supposed to have installed the manim library but doesn't work :/
class CreateCircle(Scene):
def construct(self):
circle = Circle() # create a circle
circle.set_fill(PINK, opacity=0.5) # set the color and transparency
self.play(Create(circle)) # show the circle on screen```py
Hey @opaque thunder!
Please edit your message to use a code block
Add a py after the three backticks.
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
Keep in mind recent Python major releases are full of breaking changes to retire ancient features, so older scripts might break.
You need to define "doesn't work". What exactly is the error?
Traceback (most recent call last):
File "/Users/noah/manimations/TesTmanim.py", line 1, in <module>
from manim import *
ModuleNotFoundError: No module named 'manim'````
You are not supposed to run it that way. To use your Python 3.13, you should run /opt/homebrew/bin/python3 whatever.py
so files are not at the good place ?
And if any package to install, you should run /opt/homebrew/bin/python3 -m pip install whatever
this the error of the terminal in VSCode
Because you need to tell VS Code to use that homebrew installed Python interpreter. Otherwise, VS Code is confused and might use a wrong one.
Microsoft documented all necessary details so you must get started from there.
so my files wathever.pyshould be here ?
the problem is that in my opt doc i only have the anaconda3 doc
no homebrew doc
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.