#๐Ÿ”’ problems of different versions of python on my Mac M1

26 messages ยท Page 1 of 1 (latest)

opaque thunder
#

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 ๐Ÿ™‚

rugged pulsarBOT
#

@opaque thunder

Python help channel opened

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.

main saddle
#

just download the version u need

#

shouldnt need to delete old ones

opaque thunder
#

ok i retest with this version

waxen stirrup
#

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.

opaque thunder
#

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
rugged pulsarBOT
#

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!')```
waxen stirrup
#

You need to define "doesn't work". What exactly is the error?

opaque thunder
#
Traceback (most recent call last):
  File "/Users/noah/manimations/TesTmanim.py", line 1, in <module>
    from manim import *
ModuleNotFoundError: No module named 'manim'````
waxen stirrup
#

You are not supposed to run it that way. To use your Python 3.13, you should run /opt/homebrew/bin/python3 whatever.py

opaque thunder
#

so files are not at the good place ?

waxen stirrup
#

And if any package to install, you should run /opt/homebrew/bin/python3 -m pip install whatever

opaque thunder
#

this the error of the terminal in VSCode

waxen stirrup
#

Microsoft documented all necessary details so you must get started from there.

opaque thunder
#

so my files wathever.pyshould be here ?

#

the problem is that in my opt doc i only have the anaconda3 doc

#

no homebrew doc

rugged pulsarBOT
#
Python help channel closed for inactivity

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.