In ubuntu I try to keep using only python2 and 3 from the repos. And I
noticed sage use it's own python and jupyter, I avoid anaconda, because
even with env it causes problems in short or long term. I don't know
mac, apparently it looks similar. I have a similar problem with
julia/ijulia which has an internal mini conda and quiet often difficult
to deal with ! One can set ENV PYTHON too but that doe'sn't always work
straights.
Le 31/01/2017 à 00:24, sbacelar a écrit :
Source deactivate does not work. I had to deactivate Anaconda changing
my PATH. Now SageMath works.
On Monday, January 30, 2017 at 5:20:48 PM UTC, Volker Braun wrote:
Don't activate anaconda in the first place, or deactivate it
(source deactivate)
On Monday, January 30, 2017 at 5:44:57 PM UTC+1, sbacelar wrote:
What can I do to run sage? If I activate a Python 2.7
environment in Anaconda, it doesn't work.
On Monday, January 30, 2017 at 3:46:14 PM UTC, Volker Braun
wrote:
Sage assumes that the default python is python 2.x, which
is what Apple ships...
On Monday, January 30, 2017 at 4:32:13 PM UTC+1, sbacelar
wrote:
I am trying to install SageMath 7.5.1 on my MacBook
Pro with macOS 10.12.2.
I don't know if it matters but I am using Python from
Anaconda distribution.
After opening the dmg file, this is what I get:
|
MacBook-Pro-de-Sergio:~sergiobacelar$
'/Applications/SageMath-7.5.1.app/Contents/Resources/sage/sage'--notebook=sagenb
FatalPythonerror:Py_Initialize:unable to load the file
system codec
File"/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python/encodings/__init__.py",line
123
raiseCodecRegistryError,\
^
SyntaxError:invalid syntax
Currentthread 0x00007fffefff43c0(most recent call first):
/Applications/SageMath-7.5.1.app/Contents/Resources/sage/sage:line
130:23627Aborttrap:6"$SAGE_ROOT/relocate-once.py"
Traceback(most recent call last):
File"/Applications/SageMath-7.5.1.app/Contents/Resources/sage/src/bin/sage-notebook",line
7,in<module>
importargparse
File"/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python/argparse.py",line
85,in<module>
importcollections as_collections
File"/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python/collections.py",line
21,in<module>
fromoperatorimportitemgetter as_itemgetter,eq as_eq
ImportError:dlopen(/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so,2):Symbolnotfound:__PyUnicodeUCS4_AsDefaultEncodedString
Referencedfrom:/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
Expectedin:flat namespace
in/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
|
--
You received this message because you are subscribed to the Google
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to sage-support+unsubscr...@googlegroups.com
<mailto:sage-support+unsubscr...@googlegroups.com>.
To post to this group, send email to sage-support@googlegroups.com
<mailto:sage-support@googlegroups.com>.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.