A community-maintained Python framework for creating mathematical animations.
Changes URL in ReadMe and update comments.
Syrus Darka6a464e585d5
diff --git a/README.md b/README.mdindex 5b7318067..08376af5f 100644--- a/README.md+++ b/README.md@@ -64,7 +64,7 @@ Before installing `manim-community`, there are some additional dependencies that6. Alternatively, Running the command below installs pycairo. This needs to be an elevated command prompt like Powershell.```powershell- (Invoke-WebRequest -Uri https://gist.githubusercontent.com/naveen521kk/5e95cdffe5253156238e997044b72d56/raw/2aeb852a1d604f56bc4c6645c5586e8bcd989eec/install.py -UseBasicParsing).Content | python+ (Invoke-WebRequest -Uri https://raw.githubusercontent.com/ManimCommunity/manim/master/scripts/pycairoInstall.py -UseBasicParsing).Content | python```diff --git a/Scripts/pycairoInstall.py b/Scripts/pycairoInstall.pyindex 40c3a3a86..db995b19e 100644--- a/Scripts/pycairoInstall.py+++ b/Scripts/pycairoInstall.py@@ -1,12 +1,12 @@#This script install pycairo.+import platformimport osimport sysimport urllib.request-#python 3.7 32-bit-#pycairo‑1.19.1‑cp37‑cp37m‑win32.whlif 'Windows' in platform.system():+ #In case the python version is 3.7 and the system is 32-bit, try pycairo‑1.19.1‑cp37‑cp37m‑win32.whl version of cairoif sys.version[:3]=='3.7' and platform.machine()=='x86':urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/pycairo-1.19.1-cp37-cp37m-win32.whl", "pycairo-1.19.1-cp37-cp37m-win32.whl")print("Sucessfully downloaded Cairo for your system")@@ -15,8 +15,7 @@ if 'Windows' in platform.system():os.remove("pycairo-1.19.1-cp37-cp37m-win32.whl")print("Succesfully installed Cairo")- #python 3.7 AMD64(64-bit)- #pycairo-1.19.1-cp37-cp37m-win_amd64.whl+ #In case the python version is 3.7 and the system is AMD64, try pycairo-1.19.1-cp37-cp37m-win_amd64.whl version of cairoelif sys.version[:3]=='3.7' and platform.machine()=='AMD64':urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/pycairo-1.19.1-cp37-cp37m-win_amd64.whl", "pycairo-1.19.1-cp37-cp37m-win_amd64.whl")print("Sucessfully downloaded Cairo for your system")@@ -25,17 +24,16 @@ if 'Windows' in platform.system():os.remove("pycairo-1.19.1-cp37-cp37m-win_amd64.whl")print("Succesfully installed Cairo")- #python 3.8 32-bit- #pycairo-1.19.1-cp38-cp38-win32.whl+ #In case the python version is 3.8 and the system is 32-bit, try pycairo-1.19.1-cp38-cp38-win32.whl version of cairoelif sys.version[:3]=='3.8' and platform.machine()=='x86':urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/pycairo-1.19.1-cp38-cp38-win32.whl", "pycairo-1.19.1-cp38-cp38-win32.whl")print("Sucessfully downloaded Cairo for your system")print("Installing Cairo")os.system("pip3 install pycairo-1.19.1-cp38-cp38-win32.whl")os.remove("pycairo-1.19.1-cp38-cp38-win32.whl")- print("Succesfully installed Cairo")- #python 3.8 AMD64- #pycairo-1.19.1-cp38-cp38-win_amd64.whl+ print("Succesfully installed Cairo")++ #In case the python version is 3.8 and the system is AMD64, try pycairo-1.19.1-cp38-cp38-win_amd64.whl version of cairoelif sys.version[:3]=='3.8' and platform.machine()=='AMD64':urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/pycairo-1.19.1-cp38-cp38-win_amd64.whl", "pycairo-1.19.1-cp38-cp38-win_amd64.whl")print("Sucessfully downloaded Cairo for your system")