i get error while sympy installation using conda

123 views
Skip to first unread message

Joseph Morgan

unread,
Jan 14, 2016, 11:37:17 AM1/14/16
to sympy
(sympy35) ~/Desktop//sympy $ setupegg.py develop
Failed to import the site module
Traceback (most recent call last):
  File "/usr/lib/python3.5/site.py", line 587, in <module>
    main()
  File "/usr/lib/python3.5/site.py", line 573, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python3.5/site.py", line 287, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python3.5/site.py", line 263, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python3.5/site.py", line 253, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/lib/python3.5/sysconfig.py", line 595, in get_config_var
    return get_config_vars().get(name)
  File "/usr/lib/python3.5/sysconfig.py", line 538, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/usr/lib/python3.5/sysconfig.py", line 410, in _init_posix
    from _sysconfigdata import build_time_vars
  File "/usr/lib/python3.5/_sysconfigdata.py", line 4, in <module>
    _sysconfigdata = importlib.import_module("_sysconfigdata_%s" % sys.abiflags)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_sysconfigdata_m'

Aaron Meurer

unread,
Jan 14, 2016, 11:39:40 AM1/14/16
to sy...@googlegroups.com
It looks like the Python you are running is not the one in the conda
environment. Make sure Python is installed there and that when you
type "python" that it starts the one in that environment (you can
check with 'import sys;sys.prefix').

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/360c069b-74f6-4ed6-8e62-ae05960cb8f0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Joseph Morgan

unread,
Jan 14, 2016, 12:03:43 PM1/14/16
to sympy
>>> print(sys.prefix)
/home/joseph/anaconda3/envs/sympy35

now what should i do?

Aaron Meurer

unread,
Jan 14, 2016, 12:05:54 PM1/14/16
to sy...@googlegroups.com
If you run 'python setupegg.py develop' that should use the right Python.

Make sure you don't have PYTHONPATH or PYTHONHOME set. 'conda info -a'
will show you a list of environment variables that might screw things
up.

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/6acb9a98-4b98-4bec-a797-df3d260e0d1c%40googlegroups.com.

Joseph Morgan

unread,
Jan 14, 2016, 12:09:50 PM1/14/16
to sympy
i get this ::
CIO_TEST: <not set>
CONDA_DEFAULT_ENV: sympy35
CONDA_ENVS_PATH: <not set>
LD_LIBRARY_PATH: <not set>
PATH: /home/joseph/anaconda3/envs/sympy35/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PYTHONHOME: <not set>
PYTHONPATH: <not set>


my os : linux mint 17

Joseph Morgan

unread,
Jan 14, 2016, 12:14:22 PM1/14/16
to sympy
@Aaron thanks for reply me.now what should i do ?

Aaron Meurer

unread,
Jan 14, 2016, 12:21:32 PM1/14/16
to sy...@googlegroups.com
If 'python setupegg.py develop' still gives that same error I'm not
sure what is going wrong.

Aaron Meurer

On Thu, Jan 14, 2016 at 12:14 PM, Joseph Morgan
<josephm...@gmail.com> wrote:
> @Aaron thanks for reply me.now what should i do ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/75dd0bd7-9765-4e26-b620-f2e613bbc083%40googlegroups.com.

Joseph Morgan

unread,
Jan 14, 2016, 12:23:58 PM1/14/16
to sympy
os : Linux Mint 17

(sympy35)~/Desktop/sympy $ conda list
# packages in environment at /home/joseph/anaconda3/envs/sympy35:
#
_license                  1.1                      py35_1  
abstract-rendering        0.5.1               np110py35_0  
alabaster                 0.7.6                    py35_0  
anaconda                  2.4.1               np110py35_0  
anaconda-client           1.2.1                    py35_0  
argcomplete               1.0.0                    py35_1  
astropy                   1.0.6               np110py35_0  
babel                     2.1.1                    py35_0  
beautifulsoup4            4.4.1                    py35_0  
bitarray                  0.8.1                    py35_0  
blaze                     0.8.3                     <pip>
blaze-core                0.8.3                    py35_0  
bokeh                     0.10.0                   py35_0  
boto                      2.38.0                   py35_0  
bottleneck                1.0.0               np110py35_0  
cffi                      1.2.1                    py35_0  
clyent                    1.2.0                    py35_0  
colorama                  0.3.3                    py35_0  
configobj                 5.0.6                    py35_0  
cryptography              1.0.2                    py35_0  
curl                      7.45.0                        0  
cycler                    0.9.0                    py35_0  
cython                    0.23.4                   py35_0  
cytoolz                   0.7.4                    py35_0  
datashape                 0.4.7               np110py35_1  
decorator                 4.0.4                    py35_0  
docutils                  0.12                     py35_0  
dynd                      9b63882                   <pip>
dynd-python               0.7.0                    py35_0  
fastcache                 1.0.2                    py35_0  
flask                     0.10.1                   py35_1  
fontconfig                2.11.1                        5  
freetype                  2.5.5                         0  
greenlet                  0.4.9                    py35_0  
h5py                      2.5.0               np110py35_4  
hdf5                      1.8.15.1                      2  
idna                      2.0                      py35_0  
ipykernel                 4.1.1                    py35_0  
ipython                   4.0.1                    py35_0  
ipython-genutils          0.1.0                     <pip>
ipython-notebook          4.0.4                    py35_0  
ipython-qtconsole         4.0.1                    py35_0  
ipython_genutils          0.1.0                    py35_0  
ipywidgets                4.1.0                    py35_0  
itsdangerous              0.24                     py35_0  
jbig                      2.1                           0  
jdcal                     1.0                      py35_0  
jedi                      0.9.0                    py35_0  
jinja2                    2.8                      py35_0  
jpeg                      8d                            0  
jsonschema                2.4.0                    py35_0  
jupyter                   1.0.0                    py35_1  
jupyter-client            4.1.1                     <pip>
jupyter-console           4.0.3                     <pip>
jupyter-core              4.0.6                     <pip>
jupyter_client            4.1.1                    py35_0  
jupyter_console           4.0.3                    py35_0  
jupyter_core              4.0.6                    py35_0  
libdynd                   0.7.0                         0  
libffi                    3.0.13                        0  
libgfortran               1.0                           0  
libpng                    1.6.17                        0  
libsodium                 1.0.3                         0  
libtiff                   4.0.6                         1  
libxml2                   2.9.2                         0  
libxslt                   1.1.28                        0  
llvmlite                  0.8.0                    py35_0  
lxml                      3.4.4                    py35_0  
markupsafe                0.23                     py35_0  
matplotlib                1.5.0               np110py35_0  
mistune                   0.7.1                    py35_0  
multipledispatch          0.4.8                    py35_0  
nbconvert                 4.0.0                    py35_0  
nbformat                  4.0.1                    py35_0  
networkx                  1.10                     py35_0  
nltk                      3.1                      py35_0  
nose                      1.3.7                    py35_0  
notebook                  4.0.6                    py35_0  
numba                     0.22.1              np110py35_0  
numexpr                   2.4.4               np110py35_0  
numpy                     1.10.1                   py35_0  
odo                       0.3.4                    py35_0  
openblas                  0.2.14                        3  
openpyxl                  2.2.6                    py35_0  
openssl                   1.0.2d                        0  
pandas                    0.17.1              np110py35_0  
patchelf                  0.6                           0  
path.py                   8.1.2                    py35_1  
patsy                     0.4.0               np110py35_0  
pep8                      1.6.2                    py35_0  
pexpect                   3.3                      py35_0  
pickleshare               0.5                      py35_0  
pillow                    3.0.0                    py35_1  
pip                       7.1.2                    py35_0  
ply                       3.8                      py35_0  
psutil                    3.3.0                    py35_0  
ptyprocess                0.5                      py35_0  
py                        1.4.30                   py35_0  
pyasn1                    0.1.9                    py35_0  
pycosat                   0.6.1                    py35_0  
pycparser                 2.14                     py35_0  
pycrypto                  2.6.1                    py35_0  
pycurl                    7.19.5.1                 py35_3  
pyflakes                  1.0.0                    py35_0  
pygments                  2.0.2                    py35_0  
pyopenssl                 0.15.1                   py35_1  
pyparsing                 2.0.3                    py35_0  
pyqt                      4.11.4                   py35_1  
pytables                  3.2.2               np110py35_0  
pytest                    2.8.1                    py35_0  
python                    3.5.1                         0  
python-dateutil           2.4.2                    py35_0  
pytz                      2015.7                   py35_0  
pyyaml                    3.11                     py35_1  
pyzmq                     14.7.0                   py35_1  
qt                        4.8.7                         1  
qtconsole                 4.1.1                    py35_0  
readline                  6.2                           2  
redis                     2.6.9                         0  
redis-py                  2.10.3                   py35_0  
requests                  2.8.1                    py35_0  
rope                      0.9.4                    py35_1  
rope-py3k-0.9.4           1                         <pip>
scikit-image              0.11.3              np110py35_0  
scikit-learn              0.17                np110py35_1  
scipy                     0.16.0              np110py35_1  
setuptools                18.5                     py35_0  
simplegeneric             0.8.1                    py35_0  
sip                       4.16.9                   py35_0  
six                       1.10.0                   py35_0  
snowballstemmer           1.2.0                    py35_0  
sockjs-tornado            1.0.1                    py35_0  
sphinx                    1.3.1                    py35_0  
sphinx-rtd-theme          0.1.7                     <pip>
sphinx_rtd_theme          0.1.7                    py35_0  
spyder                    2.3.8                    py35_0  
spyder-app                2.3.8                    py35_0  
sqlalchemy                1.0.9                    py35_0  
sqlite                    3.8.4.1                       1  
statsmodels               0.6.1               np110py35_0  
sympy                     0.7.6.1                  py35_0  
tables                    3.2.2                     <pip>
terminado                 0.5                      py35_1  
theano                    0.7.0               np110py35_0  
tk                        8.5.18                        0  
toolz                     0.7.4                    py35_0  
tornado                   4.3                      py35_0  
traitlets                 4.0.0                    py35_0  
ujson                     1.33                     py35_0  
unicodecsv                0.14.1                   py35_0  
util-linux                2.21                          0  
werkzeug                  0.11.2                   py35_0  
wheel                     0.26.0                   py35_1  
xlrd                      0.9.4                    py35_0  
xlsxwriter                0.7.7                    py35_0  
xlwt                      1.0.0                    py35_0  
xz                        5.0.5                         0  
yaml                      0.1.6                         0  
zeromq                    4.1.3                         0  
zlib                      1.2.8                         0  
Reply all
Reply to author
Forward
0 new messages