Document sage installation method with pip#35070
Conversation
Added sage library installation instructions using pip. Installing sage in a python virtual environment can be troublesome as `sage` and `sagemath` libraries, not at all related to this sage, exist in PiPy.
updated sage installation method with pip
|
Added sage library installation instructions using pip. Installing sage in a python virtual environment can be troublesome as |
README.md
Outdated
| Alternative Installation using PiPy | ||
| --------------- | ||
|
|
||
| You can find `sage` and `sagemath` pip packages but it is worth nothing that they are not at all realted to this `sage`. Indeed `pip install sage` installs `sage 0.0.0` which is literally an empty package. For installation of this `sage` you need to install `sagemath-standard`. First activate your python virtual environment and follow these steps: |
There was a problem hiding this comment.
I don't think it is needed to talk about these packages.
There was a problem hiding this comment.
These packages are very misleading during sage installation in a python virtual environment and the sources on the internet do not explain clearly about the installation of sage package using pip.
There was a problem hiding this comment.
At least don't start the writing with what shouldn't be done. And nobody needs to know in what specific way these packages are unsuitable. As simple "(Ignore the sage and sagemath packages on PyPI.)" should be enough.
There was a problem hiding this comment.
Agreed. Thank you
There was a problem hiding this comment.
Perhaps a note would be better to avoid this ambiguity of sage and sagemath in PyPi.
There was a problem hiding this comment.
Perhaps we should contact the maintainer of the empty sage package, @dhagrow, and ask if they would mind transferring the name to the SageMath org somehow (unsure if this ping here does anything but it's fairly easy to find an associated email address for that user on google if we did want to get in conact if desired).
Fixed the pip installation instructions according to this [comment](sagemath#35070 (comment)).
changed `PiPy` to 'PyPi'
changed PyPi tp PyPI
| Alternative Installation using PyPI | ||
| --------------- | ||
|
|
||
| For installation of `sage` in python using `pip` you need to install `sagemath-standard`. First, activate your python virtual environment and follow these steps: |
There was a problem hiding this comment.
| For installation of `sage` in python using `pip` you need to install `sagemath-standard`. First, activate your python virtual environment and follow these steps: | |
| For installation of `sage` in python using `pip` you need to install `sagemath-standard`. First, activate your python virtual environment and follow these steps: |
README.md
Outdated
|
|
||
| You need to install the `sage_conf`, a wheelhouse of various python packages. You can list the wheels using `ls $(sage-config SAGE_SPKG_WHEELS)`. After manual installation of these wheels, you can install the sage library, `sagemath-standard`. | ||
|
|
||
| **NOTE:** You can find `sage` and `sagemath` pip packages but it is worth noting that they are not at all related to this `sage`. Indeed `pip install sage` installs `sage 0.0.0` which is literally an empty package. |
There was a problem hiding this comment.
These packages are actually related to SageMath, but they are not useful.
Please reduce
There was a problem hiding this comment.
After installing sage and sagemath with pip and importing sage it throws an import error: No module named sage.
I don't understand how they are related to sage if they can't import sage at all. Please refer to this post on stackoverflow.
There was a problem hiding this comment.
There's nothing deep to understand here. Both packages were created because the respective authors intended to provide some functionality related to SageMath. But neither of the two packages can be used to install SageMath, so they should be ignored.
There was a problem hiding this comment.
Ok, I will update the readme
README.md
Outdated
| Alternative Installation using PiPy | ||
| --------------- | ||
|
|
||
| You can find `sage` and `sagemath` pip packages but it is worth nothing that they are not at all realted to this `sage`. Indeed `pip install sage` installs `sage 0.0.0` which is literally an empty package. For installation of this `sage` you need to install `sagemath-standard`. First activate your python virtual environment and follow these steps: |
updated the ambiguity note on `sage` and `sagemath` as per [sagemath#35070](sagemath#35070 (comment))
README.md
Outdated
| You need to install the `sage_conf`, a wheelhouse of various python packages. You can list the wheels using `ls $(sage-config SAGE_SPKG_WHEELS)`. After manual installation of these wheels, you can install the sage library, `sagemath-standard`. | ||
|
|
||
| **NOTE:** You can find `sage` and `sagemath` pip packages but it is worth noting that they are not at all related to this `sage`. Indeed `pip install sage` installs `sage 0.0.0` which is literally an empty package. | ||
| **NOTE:** You can find `sage` and `sagemath` pip packages but it is worth noting that when importing `sage` with these packages you will encounter `ModuleNotFoundError: No module named 'sage'`. Indeed `pip install sage` installs `sage 0.0.0` which is literally an empty package. |
There was a problem hiding this comment.
Still too much information.
There was a problem hiding this comment.
reduced the information.
Reduced `sage` and `sagemath` information as per [sagemath#35070](sagemath#35070 (comment))
Co-authored-by: Alex J Best <alex.j.best@gmail.com>
|
Documentation preview for this PR is ready! 🎉 |
Codecov ReportBase: 88.59% // Head: 88.58% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #35070 +/- ##
===========================================
- Coverage 88.59% 88.58% -0.01%
===========================================
Files 2140 2140
Lines 396961 396961
===========================================
- Hits 351677 351643 -34
- Misses 45284 45318 +34
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
📚 Description
📝 Checklist
⌛ Dependencies