FileNotFoundError: [Errno 2] No such file or directory 'example.py'
Closed this issue · 2 comments
I've been trying to run a python example by copying and pasting your code. I have copied and pasted the code into a file 'example.py'
I have verified that the file does indeed exist now in the same directory I used to successfully run example_scenes.py SquareToCircle
I have typed:
python3 -m manim example.py TangentVector -pl
It says that example.py is not there
It is there
Therefore wtf please help
WARNING
Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.
- Manim issues
- Stackoverflow
- Official documentation
- My documentation
- Todd tutorial
- Malhora tutorial
- My tutorials
You can joined to the Discord community here
Points to consider before writing your issue
- This repository works with the Manim version of February 3, unless otherwise indicated. If your code does not work, check that you are using the correct version.
- At the moment Manim works with Python 3.7, not with 3.8. This is because several of the dependencies have not yet been updated.
- If the terminal throws an error, please write it completely with the markdown format.
- Be clear and specific with your problem, share the code (and files, if applicable) and the command you use when rendering the video.
Fast markdown tutorial.
Inline code:
INPUT
The code is `TexMobject` write `TeX`.
OUTPUT
The code is TexMobject
write TeX
.
Multiline code
INPUT
My code is:
```python
Here is
a multiline
code
```
OUTPUT
My code is:
Here is
a multiline
code
what os is you are using, linux or windows ?
try to put #!/usr/bin/env python
at first line of your file 'example.py'
Learn to use the terminal before using Manim, clearly you are doing something wrong in the terminal and I am not going to explain such basic things.