Ask Your Question

edenharder's profile - activity

2022-07-06 06:28:16 +0200 received badge  Famous Question (source)
2020-08-18 20:46:20 +0200 received badge  Nice Question (source)
2019-05-27 05:07:32 +0200 received badge  Famous Question (source)
2019-05-25 05:30:09 +0200 received badge  Notable Question (source)
2018-12-12 22:07:04 +0200 received badge  Notable Question (source)
2018-12-12 22:07:04 +0200 received badge  Popular Question (source)
2018-05-29 11:47:50 +0200 received badge  Popular Question (source)
2017-01-20 16:12:00 +0200 received badge  Famous Question (source)
2017-01-20 16:12:00 +0200 received badge  Popular Question (source)
2017-01-20 16:12:00 +0200 received badge  Notable Question (source)
2016-11-11 08:58:57 +0200 received badge  Editor (source)
2016-11-08 20:52:30 +0200 received badge  Good Question (source)
2016-11-08 20:32:00 +0200 received badge  Nice Question (source)
2016-11-08 20:08:48 +0200 asked a question Cannot use pip because pip is configured with locations that require TLS/SSL

I installed pip by sage -i pip, but when I use pip to install some python packages, it always gives the following error message:

sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody can write to it. Untrusted users could put files in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting octave_kernel Could not fetch URL https://pypi.python.org/simple/octave-kernel/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping Could not find a version that satisfies the requirement octave_kernel (from versions: ) No matching distribution found for octave_kernel

Then I followed this post which says ./sage -i pyopenssl, but this step fails for me also.

2016-11-08 19:39:16 +0200 commented answer What packages in sage can I use in python?

done! https://ask.sagemath.org/question/35483/what-does-from-sageall-import-do/ (https://ask.sagemath.org/question/354...)

2016-11-08 19:38:49 +0200 asked a question What does `from sage.all import *` do?

This question is relatd with another one: What packages in sage can I use in python?

How do I import Sage into a Python script told me that to use from sage.all import * to import sage packages in python. When I list the installed sage packages, there is igraph and python-igraph. But from sage.all import * will not import them into python. I'd like to know, what kind of packages can be imported when I use from sage.all import *.

BTW, the proper way to use igraph in python is import igraph with python_igraphinstalled.

ps: My karma is insufficient to publish links.

2016-11-08 12:51:06 +0200 commented answer What packages in sage can I use in python?

Thanks! http://doc.sagemath.org/html/en/faq/faq-usage.html#how-do-i-import-sage-into-a-python-script (How do I import Sage into a Python script) told me that to use from sage.all import * to import sage packages. When I list the installed sage packages, there is igraph and python-igraph. But from sage.all import * will not import them into python. I'd like to know, what kind of packages can be imported when I use from sage.all import *.

2016-11-07 14:38:14 +0200 received badge  Scholar (source)
2016-11-07 14:38:10 +0200 commented answer What packages in sage can I use in python?

Thanks for your reply! I tested after I installed python-igraph and igraph, they were still cannot be imported by python. Then I sage -f python2 and now I can import igraph in python. And I wonder that why the only tutorial teaches from sage.all import * but not directly import somepackage?

2016-11-07 14:21:03 +0200 received badge  Student (source)
2016-11-07 13:41:52 +0200 commented question Installing igraph

I installed python_igraph successfully with sage -i python_igraph, but I cannot import it after the installation.

2016-11-07 13:41:52 +0200 commented answer Importing Python packages into Sage or Vice Versa

When i run pip install python-igraph it gives that pip install python_igraph pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting python_igraph Could not fetch URL https://pypi.python.org/simple/python-igraph/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping Could not find a version that satisfies the requirement python_igraph (from versions: ) No matching distribution found for python_igraph Could you teach me how to install it correctly?

2016-11-07 13:41:52 +0200 asked a question What packages in sage can I use in python?

As I know, there is not a good tutorial explainging how to import sage packages in python. When I list_packages of sage, it shows that numpy, scipy, python_igraph are installed. Then I want to import these packages in python with the following codes

from sage.all import *

I can use numpy, scipy while python_igraph does not work. Could anyone explain why numpy, scipy work while python_igraph does not? How to get python_igraph work?

And what packages in sage can I use in python? Is there any explicit tutorial?

2016-11-07 13:41:51 +0200 answered a question Installing igraph

python_igraph is already included in the new SageMath 7.4. But I do not know how to import it in python.