AuthorTammy ArchivesCategories |
Back to Blog
Install Sympy For Mac10/14/2021
For example, to use Python 2, tryAttempting to run python3 -c “print(“Python says hello”)”Good, Python ran correctly. If youNeed to, you can select a different one using the PYTHON environmentVariable (see “help sympref”). The Python interpreter is currently: “python3”.Computers may have more than one Python interpreter installed. Python 3.2.5 - May 15, 2013.But I am a Linux user, I don’t have a deep insight into the best way to install or configure these things on macOS. Use import sympy.core.compatibilityFile "/usr/local/lib/python3.8/dist-packages/sympy/_init_.py", line 677, in _getattr_AttributeError: module 'sympy.core.compatibility' has noattribute 'integer_types'Waiting.warning: readblock: timeout of 30 exceeded, breaking outValid_sym_assumptions at line 38 column 10Error: ipc_popen2: something wrong? timed out starting pythonDowngrade to sympy-1.5 with pip3 and it works again.Symbolic 2.9.0 (as shown in the output above)I can give you general tips to give to your student. Version)”ModuleNotFoundError: No module named ‘sympy’Unfortunately status was non-zero: probably Python cannot import sympy.Do you have SymPy installed? If not, please try to install it andIf you do have SymPy installed, maybe it’s installed for a differentPython interpreter than the one we found? Please try “setenv” asDescribed above to change your python interpreter.Symbolic is not compatible with sympy 1.6Symbolic pkg v2.9.0: /usr/local/lib/python3.8/dist-packages/sympy/_init_.py:672: SymPyDeprecationWarning:Importing sympy.core.compatibility with 'from sympy import *' has beenDeprecated since SymPy 1.6.If SymPy doesn’t work in either, then they haven’t installed it right, and I can’t help much with that.If they are different Python executables, then the student should either adjust their PATH login environment variable so that it adds the directory that contains the right Python first. Have them run at the Octave command prompt system('python3 -c "import sys print(sys.executable)"') If they are the same, then I see no reason why SymPy shouldn’t work in both instances.
![]()
0 Comments
Read More
Leave a Reply. |