PyGeodesy and GeographicLib available in Python 2.7 but not available in Python 3.6
My operating system is Ubuntu MATE 18.04. I would like to use the python packages PyGeodesy and GeographicLib in python 3.6. Right now I can only use those packages in python 2.7. I have run the commands pip install geographiclib
and pip install PyGeodesy
. Now I have the following situation:
gus@foo:~$ python -i
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygeodesy
>>> from geographiclib.geodesic import Geodesic
>>> Geodesic.WGS84.Inverse(-41.32, 174.81, 40.96, -5.50)
{'lat1': -41.32, 'a12': 179.6197069334283, 's12': 19959679.26735382, 'lat2': 40.96, 'azi2': 18.825195123247063, 'azi1': 161.06766998616015, 'lon1': 174.81, 'lon2': -5.5}
>>> {'lat1': -41.32,
... 'a12': 179.6197069334283,
... 's12': 19959679.26735382,
... 'lat2': 40.96,
... 'azi2': 18.825195123248392,
... 'azi1': 161.06766998615882,
... 'lon1': 174.81,
... 'lon2': -5.5}
{'azi2': 18.825195123248392, 'azi1': 161.06766998615882, 'lat1': -41.32, 'lon2': -5.5, 'a12': 179.6197069334283, 'lon1': 174.81, 's12': 19959679.26735382, 'lat2': 40.96}
>>>
gus@foo:~$ python3 -i
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygeodesy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pygeodesy'
>>> import geographiclib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'geographiclib'
>>>
UPDATE
I have attempted the following commands, but the original problem persists.
gus@foo:~$ python3 -m pip install geographiclib
Collecting geographiclib
Using cached https://files.pythonhosted.org/packages/5b/ac/4f348828091490d77899bc74e92238e2b55c59392f21948f296e94e50e2b/geographiclib-1.49.tar.gz
Building wheels for collected packages: geographiclib
Running setup.py bdist_wheel for geographiclib ... done
Stored in directory: /home/balloonionaire/.cache/pip/wheels/99/45/d1/14954797e2a976083182c2e7da9b4e924509e59b6e5c661061
Successfully built geographiclib
Installing collected packages: geographiclib
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/geographiclib-1.49.dist-info'
Consider using the `--user` option or check the permissions.
There is some documentation at https://packaging.python.org/tutorials/installing-packages/, which I think is relevant, but that I don't understand.
python
add a comment |
My operating system is Ubuntu MATE 18.04. I would like to use the python packages PyGeodesy and GeographicLib in python 3.6. Right now I can only use those packages in python 2.7. I have run the commands pip install geographiclib
and pip install PyGeodesy
. Now I have the following situation:
gus@foo:~$ python -i
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygeodesy
>>> from geographiclib.geodesic import Geodesic
>>> Geodesic.WGS84.Inverse(-41.32, 174.81, 40.96, -5.50)
{'lat1': -41.32, 'a12': 179.6197069334283, 's12': 19959679.26735382, 'lat2': 40.96, 'azi2': 18.825195123247063, 'azi1': 161.06766998616015, 'lon1': 174.81, 'lon2': -5.5}
>>> {'lat1': -41.32,
... 'a12': 179.6197069334283,
... 's12': 19959679.26735382,
... 'lat2': 40.96,
... 'azi2': 18.825195123248392,
... 'azi1': 161.06766998615882,
... 'lon1': 174.81,
... 'lon2': -5.5}
{'azi2': 18.825195123248392, 'azi1': 161.06766998615882, 'lat1': -41.32, 'lon2': -5.5, 'a12': 179.6197069334283, 'lon1': 174.81, 's12': 19959679.26735382, 'lat2': 40.96}
>>>
gus@foo:~$ python3 -i
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygeodesy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pygeodesy'
>>> import geographiclib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'geographiclib'
>>>
UPDATE
I have attempted the following commands, but the original problem persists.
gus@foo:~$ python3 -m pip install geographiclib
Collecting geographiclib
Using cached https://files.pythonhosted.org/packages/5b/ac/4f348828091490d77899bc74e92238e2b55c59392f21948f296e94e50e2b/geographiclib-1.49.tar.gz
Building wheels for collected packages: geographiclib
Running setup.py bdist_wheel for geographiclib ... done
Stored in directory: /home/balloonionaire/.cache/pip/wheels/99/45/d1/14954797e2a976083182c2e7da9b4e924509e59b6e5c661061
Successfully built geographiclib
Installing collected packages: geographiclib
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/geographiclib-1.49.dist-info'
Consider using the `--user` option or check the permissions.
There is some documentation at https://packaging.python.org/tutorials/installing-packages/, which I think is relevant, but that I don't understand.
python
1
I use geographiclib with Python 3.6. The pip program and module are version-specific. Did you use the right pip when you tried to install geographiclib for Python 3.6? To make sure you're using the right pip, you should use the module, egpython3 -m pip install geographiclib
– PM 2Ring
Nov 19 '18 at 18:02
Please see the update to the OP.
– EricVonB
Nov 19 '18 at 18:19
add a comment |
My operating system is Ubuntu MATE 18.04. I would like to use the python packages PyGeodesy and GeographicLib in python 3.6. Right now I can only use those packages in python 2.7. I have run the commands pip install geographiclib
and pip install PyGeodesy
. Now I have the following situation:
gus@foo:~$ python -i
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygeodesy
>>> from geographiclib.geodesic import Geodesic
>>> Geodesic.WGS84.Inverse(-41.32, 174.81, 40.96, -5.50)
{'lat1': -41.32, 'a12': 179.6197069334283, 's12': 19959679.26735382, 'lat2': 40.96, 'azi2': 18.825195123247063, 'azi1': 161.06766998616015, 'lon1': 174.81, 'lon2': -5.5}
>>> {'lat1': -41.32,
... 'a12': 179.6197069334283,
... 's12': 19959679.26735382,
... 'lat2': 40.96,
... 'azi2': 18.825195123248392,
... 'azi1': 161.06766998615882,
... 'lon1': 174.81,
... 'lon2': -5.5}
{'azi2': 18.825195123248392, 'azi1': 161.06766998615882, 'lat1': -41.32, 'lon2': -5.5, 'a12': 179.6197069334283, 'lon1': 174.81, 's12': 19959679.26735382, 'lat2': 40.96}
>>>
gus@foo:~$ python3 -i
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygeodesy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pygeodesy'
>>> import geographiclib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'geographiclib'
>>>
UPDATE
I have attempted the following commands, but the original problem persists.
gus@foo:~$ python3 -m pip install geographiclib
Collecting geographiclib
Using cached https://files.pythonhosted.org/packages/5b/ac/4f348828091490d77899bc74e92238e2b55c59392f21948f296e94e50e2b/geographiclib-1.49.tar.gz
Building wheels for collected packages: geographiclib
Running setup.py bdist_wheel for geographiclib ... done
Stored in directory: /home/balloonionaire/.cache/pip/wheels/99/45/d1/14954797e2a976083182c2e7da9b4e924509e59b6e5c661061
Successfully built geographiclib
Installing collected packages: geographiclib
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/geographiclib-1.49.dist-info'
Consider using the `--user` option or check the permissions.
There is some documentation at https://packaging.python.org/tutorials/installing-packages/, which I think is relevant, but that I don't understand.
python
My operating system is Ubuntu MATE 18.04. I would like to use the python packages PyGeodesy and GeographicLib in python 3.6. Right now I can only use those packages in python 2.7. I have run the commands pip install geographiclib
and pip install PyGeodesy
. Now I have the following situation:
gus@foo:~$ python -i
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygeodesy
>>> from geographiclib.geodesic import Geodesic
>>> Geodesic.WGS84.Inverse(-41.32, 174.81, 40.96, -5.50)
{'lat1': -41.32, 'a12': 179.6197069334283, 's12': 19959679.26735382, 'lat2': 40.96, 'azi2': 18.825195123247063, 'azi1': 161.06766998616015, 'lon1': 174.81, 'lon2': -5.5}
>>> {'lat1': -41.32,
... 'a12': 179.6197069334283,
... 's12': 19959679.26735382,
... 'lat2': 40.96,
... 'azi2': 18.825195123248392,
... 'azi1': 161.06766998615882,
... 'lon1': 174.81,
... 'lon2': -5.5}
{'azi2': 18.825195123248392, 'azi1': 161.06766998615882, 'lat1': -41.32, 'lon2': -5.5, 'a12': 179.6197069334283, 'lon1': 174.81, 's12': 19959679.26735382, 'lat2': 40.96}
>>>
gus@foo:~$ python3 -i
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygeodesy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pygeodesy'
>>> import geographiclib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'geographiclib'
>>>
UPDATE
I have attempted the following commands, but the original problem persists.
gus@foo:~$ python3 -m pip install geographiclib
Collecting geographiclib
Using cached https://files.pythonhosted.org/packages/5b/ac/4f348828091490d77899bc74e92238e2b55c59392f21948f296e94e50e2b/geographiclib-1.49.tar.gz
Building wheels for collected packages: geographiclib
Running setup.py bdist_wheel for geographiclib ... done
Stored in directory: /home/balloonionaire/.cache/pip/wheels/99/45/d1/14954797e2a976083182c2e7da9b4e924509e59b6e5c661061
Successfully built geographiclib
Installing collected packages: geographiclib
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/geographiclib-1.49.dist-info'
Consider using the `--user` option or check the permissions.
There is some documentation at https://packaging.python.org/tutorials/installing-packages/, which I think is relevant, but that I don't understand.
python
python
edited Nov 19 '18 at 18:17
EricVonB
asked Nov 19 '18 at 17:08
EricVonBEricVonB
5719
5719
1
I use geographiclib with Python 3.6. The pip program and module are version-specific. Did you use the right pip when you tried to install geographiclib for Python 3.6? To make sure you're using the right pip, you should use the module, egpython3 -m pip install geographiclib
– PM 2Ring
Nov 19 '18 at 18:02
Please see the update to the OP.
– EricVonB
Nov 19 '18 at 18:19
add a comment |
1
I use geographiclib with Python 3.6. The pip program and module are version-specific. Did you use the right pip when you tried to install geographiclib for Python 3.6? To make sure you're using the right pip, you should use the module, egpython3 -m pip install geographiclib
– PM 2Ring
Nov 19 '18 at 18:02
Please see the update to the OP.
– EricVonB
Nov 19 '18 at 18:19
1
1
I use geographiclib with Python 3.6. The pip program and module are version-specific. Did you use the right pip when you tried to install geographiclib for Python 3.6? To make sure you're using the right pip, you should use the module, eg
python3 -m pip install geographiclib
– PM 2Ring
Nov 19 '18 at 18:02
I use geographiclib with Python 3.6. The pip program and module are version-specific. Did you use the right pip when you tried to install geographiclib for Python 3.6? To make sure you're using the right pip, you should use the module, eg
python3 -m pip install geographiclib
– PM 2Ring
Nov 19 '18 at 18:02
Please see the update to the OP.
– EricVonB
Nov 19 '18 at 18:19
Please see the update to the OP.
– EricVonB
Nov 19 '18 at 18:19
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379542%2fpygeodesy-and-geographiclib-available-in-python-2-7-but-not-available-in-python%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379542%2fpygeodesy-and-geographiclib-available-in-python-2-7-but-not-available-in-python%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I use geographiclib with Python 3.6. The pip program and module are version-specific. Did you use the right pip when you tried to install geographiclib for Python 3.6? To make sure you're using the right pip, you should use the module, eg
python3 -m pip install geographiclib
– PM 2Ring
Nov 19 '18 at 18:02
Please see the update to the OP.
– EricVonB
Nov 19 '18 at 18:19