Installing QGIS3 on Mac?Installing QGIS3 on a Mac with Python in AnacondaMissing osgeo in QGIS 3.4 Madeira...
At which point does a character regain all their Hit Dice?
Understanding "audieritis" in Psalm 94
Trouble understanding overseas colleagues
Why Were Madagascar and New Zealand Discovered So Late?
Teaching indefinite integrals that require special-casing
How to be diplomatic in refusing to write code that breaches the privacy of our users
Increase performance creating Mandelbrot set in python
Short story about space worker geeks who zone out by 'listening' to radiation from stars
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
What defines a dissertation?
How can I use the arrow sign in my bash prompt?
How will losing mobility of one hand affect my career as a programmer?
Efficiently merge handle parallel feature branches in SFDX
Using parameter substitution on a Bash array
What is difference between behavior and behaviour
Is expanding the research of a group into machine learning as a PhD student risky?
How do I keep an essay about "feeling flat" from feeling flat?
Modify casing of marked letters
What does this 7 mean above the f flat
when is out of tune ok?
Do I need a multiple entry visa for a trip UK -> Sweden -> UK?
Is it correct to write "is not focus on"?
What would be the benefits of having both a state and local currencies?
Why is delta-v is the most useful quantity for planning space travel?
Installing QGIS3 on Mac?
Installing QGIS3 on a Mac with Python in AnacondaMissing osgeo in QGIS 3.4 Madeira (macOS High Sierra)Error installing QGIS on Mac OS X 10.11.6 (Why do I “need Xcode.app” to “compile qt5”?)How to solve an installation problem involving QGIS, Python, and a plug-in?Trying to Install on MAC OS Lion and getting Python error message“Browse” button returns python error in QGISInstalling QGIS QGIS 2.18.13-1 for Mac 10.11.6 El Cap?Installing QGIS3 on a Mac with Python in AnacondaInstall of QGIS3.0 on Mac OSX using KyngChaos prebuilt binariesPlan for python versions in QGIS?Installing QGIS for Mac OS X?My QGIS says “PyQGIS couldn't be loaded”QGIS Installation on Mac - Mac doesn't accept QGIS as a trusted developer
Kyngchaos installer is not finding python3. I installed python3 using HomeBrew and is not located at /usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/bin/python3.6
How do I tell the QGIS installer to recognize that python3 is installed?
I had previously installed GDAL using HomeBrew, so tried reinstalling (or installing another version wherever it might end up) thinking it might help with the situation, but the QGIS3 installer still can't find python 3.
The installation error is a popup that comes up as soon as the installer is open and says "python3 QGIS requires Python 3.6."
For non Mac users, most seem to rely on Kyngchaos to provide an installer for QGIS and he has just released the installer for v3.
Update: answered my own questions below. Don't use HomeBrew unless you know enough to point the QGIS installer/QGIS to the right version (which I certainly don't), but use the python3 installer version linked to in the ReadMe.
qgis python installation mac qgis-3
|
show 7 more comments
Kyngchaos installer is not finding python3. I installed python3 using HomeBrew and is not located at /usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/bin/python3.6
How do I tell the QGIS installer to recognize that python3 is installed?
I had previously installed GDAL using HomeBrew, so tried reinstalling (or installing another version wherever it might end up) thinking it might help with the situation, but the QGIS3 installer still can't find python 3.
The installation error is a popup that comes up as soon as the installer is open and says "python3 QGIS requires Python 3.6."
For non Mac users, most seem to rely on Kyngchaos to provide an installer for QGIS and he has just released the installer for v3.
Update: answered my own questions below. Don't use HomeBrew unless you know enough to point the QGIS installer/QGIS to the right version (which I certainly don't), but use the python3 installer version linked to in the ReadMe.
qgis python installation mac qgis-3
Where are the Kyngchaos installers? I can't find them anywhere.
– Alex Leith
Mar 11 '18 at 22:18
Since he hasn't updated the link, I guessed it to be kyngchaos.com/files/software/qgis/QGIS-3.0.0-1.dmg
– Greg
Mar 11 '18 at 22:23
It's not promoted on his webpage yet is it?
– Alex Leith
Mar 11 '18 at 22:49
2
"QGIS 2.18.15-4" is repeated twice at kyngchaos.com/software/qgis and the first should be "QGIS-3.0.0-1". I think it's a copy and paste error, in other words he copied the old link etc and forgot to update. How would I guess this—not because I've ever done it!
– Greg
Mar 11 '18 at 22:58
4
Today (12 Mar 2019), the link at kyngchaos.com/software/qgis is updated.
– Greg
Mar 12 '18 at 18:47
|
show 7 more comments
Kyngchaos installer is not finding python3. I installed python3 using HomeBrew and is not located at /usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/bin/python3.6
How do I tell the QGIS installer to recognize that python3 is installed?
I had previously installed GDAL using HomeBrew, so tried reinstalling (or installing another version wherever it might end up) thinking it might help with the situation, but the QGIS3 installer still can't find python 3.
The installation error is a popup that comes up as soon as the installer is open and says "python3 QGIS requires Python 3.6."
For non Mac users, most seem to rely on Kyngchaos to provide an installer for QGIS and he has just released the installer for v3.
Update: answered my own questions below. Don't use HomeBrew unless you know enough to point the QGIS installer/QGIS to the right version (which I certainly don't), but use the python3 installer version linked to in the ReadMe.
qgis python installation mac qgis-3
Kyngchaos installer is not finding python3. I installed python3 using HomeBrew and is not located at /usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/bin/python3.6
How do I tell the QGIS installer to recognize that python3 is installed?
I had previously installed GDAL using HomeBrew, so tried reinstalling (or installing another version wherever it might end up) thinking it might help with the situation, but the QGIS3 installer still can't find python 3.
The installation error is a popup that comes up as soon as the installer is open and says "python3 QGIS requires Python 3.6."
For non Mac users, most seem to rely on Kyngchaos to provide an installer for QGIS and he has just released the installer for v3.
Update: answered my own questions below. Don't use HomeBrew unless you know enough to point the QGIS installer/QGIS to the right version (which I certainly don't), but use the python3 installer version linked to in the ReadMe.
qgis python installation mac qgis-3
qgis python installation mac qgis-3
edited Apr 28 '18 at 7:32
PolyGeo♦
53.8k1781244
53.8k1781244
asked Mar 11 '18 at 21:52
GregGreg
4711313
4711313
Where are the Kyngchaos installers? I can't find them anywhere.
– Alex Leith
Mar 11 '18 at 22:18
Since he hasn't updated the link, I guessed it to be kyngchaos.com/files/software/qgis/QGIS-3.0.0-1.dmg
– Greg
Mar 11 '18 at 22:23
It's not promoted on his webpage yet is it?
– Alex Leith
Mar 11 '18 at 22:49
2
"QGIS 2.18.15-4" is repeated twice at kyngchaos.com/software/qgis and the first should be "QGIS-3.0.0-1". I think it's a copy and paste error, in other words he copied the old link etc and forgot to update. How would I guess this—not because I've ever done it!
– Greg
Mar 11 '18 at 22:58
4
Today (12 Mar 2019), the link at kyngchaos.com/software/qgis is updated.
– Greg
Mar 12 '18 at 18:47
|
show 7 more comments
Where are the Kyngchaos installers? I can't find them anywhere.
– Alex Leith
Mar 11 '18 at 22:18
Since he hasn't updated the link, I guessed it to be kyngchaos.com/files/software/qgis/QGIS-3.0.0-1.dmg
– Greg
Mar 11 '18 at 22:23
It's not promoted on his webpage yet is it?
– Alex Leith
Mar 11 '18 at 22:49
2
"QGIS 2.18.15-4" is repeated twice at kyngchaos.com/software/qgis and the first should be "QGIS-3.0.0-1". I think it's a copy and paste error, in other words he copied the old link etc and forgot to update. How would I guess this—not because I've ever done it!
– Greg
Mar 11 '18 at 22:58
4
Today (12 Mar 2019), the link at kyngchaos.com/software/qgis is updated.
– Greg
Mar 12 '18 at 18:47
Where are the Kyngchaos installers? I can't find them anywhere.
– Alex Leith
Mar 11 '18 at 22:18
Where are the Kyngchaos installers? I can't find them anywhere.
– Alex Leith
Mar 11 '18 at 22:18
Since he hasn't updated the link, I guessed it to be kyngchaos.com/files/software/qgis/QGIS-3.0.0-1.dmg
– Greg
Mar 11 '18 at 22:23
Since he hasn't updated the link, I guessed it to be kyngchaos.com/files/software/qgis/QGIS-3.0.0-1.dmg
– Greg
Mar 11 '18 at 22:23
It's not promoted on his webpage yet is it?
– Alex Leith
Mar 11 '18 at 22:49
It's not promoted on his webpage yet is it?
– Alex Leith
Mar 11 '18 at 22:49
2
2
"QGIS 2.18.15-4" is repeated twice at kyngchaos.com/software/qgis and the first should be "QGIS-3.0.0-1". I think it's a copy and paste error, in other words he copied the old link etc and forgot to update. How would I guess this—not because I've ever done it!
– Greg
Mar 11 '18 at 22:58
"QGIS 2.18.15-4" is repeated twice at kyngchaos.com/software/qgis and the first should be "QGIS-3.0.0-1". I think it's a copy and paste error, in other words he copied the old link etc and forgot to update. How would I guess this—not because I've ever done it!
– Greg
Mar 11 '18 at 22:58
4
4
Today (12 Mar 2019), the link at kyngchaos.com/software/qgis is updated.
– Greg
Mar 12 '18 at 18:47
Today (12 Mar 2019), the link at kyngchaos.com/software/qgis is updated.
– Greg
Mar 12 '18 at 18:47
|
show 7 more comments
6 Answers
6
active
oldest
votes
NEW UPDATE
QGIS3 can now be installed from osgeo
's homebrew tap, which saves mucking about with python symlinks... i.e.
brew tap osgeo/osgeo4mac
brew install qgis
Then type qgis
in the terminal to launch, then pin the dock menu icon to simplify launching in future.
Note that the installation console logs will also provide an example for how to symlink qgis
to your applications directory.
OLD UPDATE
(This method requires updating symlinks when versions change... i.e. not ideal)
For those who use homebrew, it is probably better to just use a symlink, otherwise all kinds of havoc could emerge. e.g. the official python binary will modify your ~./bash_profile
so that python3
and pip3
no longer point to brew...
In my case I've now symlinked the homebrew version (along the lines of the discussion in the answer provided by @Evenfire):
sudo ln -s /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework /Library/Frameworks/Python.framework
QGIS3 then complained that certain python packages were missing, which can be installed with pip3, e.g.
pip3 install owslib PyYaml psycopg2 jinja2 pygments plotly
It might also complain about gdal
, in my case I simply used brew:
brew install gdal
ORIGINAL
(This method is not recommended for brew users!)
I've also got python3 installed via brew and am running into the same difficulty.
What seems to work is to install the official python binaries which install to /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
From trial and error, this has to be done before the 1 Install GDAL Complete.pkg
package is installed, which otherwise installs against the wrong python and QGIS 3 will complain about missing python packages.
Those with time to experiment could conceivably try symlinks to get around directly using the brew (or other) python3.
Thanks! The install of python just before the "1 Install GDAL Complete.pkg" did the trick for me and solved the error "module osgeo not found".
– Javier Fajardo
Mar 13 '18 at 18:35
Do you have GDAL also installed withhomebrew
? I created the symlink forpython
but the installer is asking forGDAL2.2
which I have installed withhomebrew
.
– Duccio A
May 18 '18 at 10:32
In my case I don't havegdal
installed with homebrew. My understanding is that QGIS specifically depends on KyngChaos' version (unfortunately!). So it might be necessary to install the gdal provided with QGIS and then it might work.
– songololo
May 18 '18 at 13:26
1
I noticed that installing binaries for the newer python3.7 is not supported by the newest QGIS installer! python3.6.6 is necessary, and it can be downloaded from the link that you provided in this answer.
– Javier Fajardo
Jul 18 '18 at 15:06
2
This might be a very stupid question, but once you've installed qgis via homebrew, how do you run it? Figured it out:qgis3
is the command.
– Juan Francisco Saldarriaga
Aug 20 '18 at 17:13
|
show 2 more comments
If you have installed Python3 with Homebrew, you can use symlinks to comply with the installer needs (as suggested by @shongololo).
It seems, the installer needs Python3 installed at (thanks @shongololo): /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
(Install python3 using Homebrew to follow this part)
Find the Cellar
directory on your machine. Mine is at: /usr/local/Cellar
.
Then find this directory: /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework
(where 3.x.y_z
is the python3 version you want to use, for me it is 3.6.4_2
). This is the directory we want the installer to find. We need to link to this directory from the directory the installer is looking at by making a Symbolic Link.
Using the ln
command (ln -s TARGET_FILE_TO_LINK_TO LINK_NAME
):
ln -s /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework /Library/Frameworks/Python.framework
will do the trick. You certainly need to sudo
.
This has worked for me.
(The "Cellar" is a place that all your "kegs" go. Homebrew installs packages to their own directory (in the Cellar) and then symlinks their files into /usr/local/. [from Ryan Kulla's blog])
Thanks for this info. I fixed already with "default" installer. Since I don't need Python for anything else that will work for me. I in general prefer to use Homebrew for consistency. And Apple has v2 installed by default. Was are the tradeoffs between using the two installers (Homebrew and one from the python site)? I guess that Homebrew will keep python updated more easily. And you can uninstall easily. I have no idea how to do that with the other install method. Got me thinking to go back to the Homebrew version since I know how to manage it.
– Greg
Mar 13 '18 at 19:59
@greg homebrew is easier to much easier to manage, e.g. uninstalls. It also keeps your various package interdependencies interlinked quite nicely.
– songololo
Mar 14 '18 at 9:34
1
@evenfire thanks for the nice explanation.brew info python
is a handy way to quickly find paths to existing brewed python installs
– songololo
Mar 14 '18 at 9:36
4
A heads-up that brew recently changed their defaultpython
to v3, so for those that have recently updated / upgraded their homebrew, the above paths would containpython
and notpython3
– songololo
Mar 14 '18 at 10:13
4
How could I connect the framework file with anaconda python? (I cannot find python.framework in anaconda dirs)
– natsuapo
Mar 15 '18 at 14:16
|
show 6 more comments
I followed the link that came with the QGIS installer to https://www.python.org/downloads/ and installed python3 that way. The QGIS installer was then happy.
This seems to be contradicted by comments here:
"Because QGIS links the python library, you must install the python.org Python 3.6. You can't substitute another python 3 installation. Sorry, that's the way it is."
Posted at http://www.kyngchaos.com/blog/2018/20180315_qgis_3_must_use_python.org_python_3. If I knew how to contact William Kyngesbury, I would. He is performing a great service though.
add a comment |
A version using pyenv
and brew
:
brew install pyenv
env PYTHON_CONFIGURE_OPTS="--enable-framework CC=clang" pyenv install 3.6.5
sudo ln -s /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -R /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -r /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/ /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
sudo cp /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
#
it should be enough just to run first 2 lines and thenln -s ~/.pyenv/versions/3.6.5/Python.framework /Library/Frameworks/Python.framework
– Alex Markov
Jul 4 '18 at 8:53
add a comment |
I faced the same issue when installing QGIS on mac.
It was failed, although I tried to softlink it with other python installed by anaconda, etc.
The way I solved the issue: download related python version in python.org and install.
add a comment |
Another version of pyenv
and symlinking, using brew
just for dependencies.
Recommended location to install pyenv
is ~/.pyenv
($HOME/.pyenv
), but could be any location.
clone
pyenv
repository (maybe adapt~/.pyenv
to/path/to/pyenv
)
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
setup
pyenv
in~/.bash_profile
(maybe adapt$HOME/.pyenv
to/path/to/pyenv
, be aware, that the third line must stay the final one of.bash_profile
, even after future updates)
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfi' >> ~/.bash_profile
restart shell
exec "$SHELL"
install dependencies
readline
andxz
the easy way withbrew
brew install readline xz
install Python 3.6.x containing
Python.framework
(maybe adapt version number)
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.8
always rehash after adding a new Python version to
pyenv
pyenv rehash
symlink
Python.framework
sudo ln -s $(pyenv root)/versions/3.6.8/Python.framework /Library/Frameworks/Python.framework
Now the QGIS 3.6.0 installer from qgis.org should run fine plus macOS is well prepared for multiple Python versions, playing nice with system's Python.
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2fgis.stackexchange.com%2fquestions%2f274381%2finstalling-qgis3-on-mac%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
NEW UPDATE
QGIS3 can now be installed from osgeo
's homebrew tap, which saves mucking about with python symlinks... i.e.
brew tap osgeo/osgeo4mac
brew install qgis
Then type qgis
in the terminal to launch, then pin the dock menu icon to simplify launching in future.
Note that the installation console logs will also provide an example for how to symlink qgis
to your applications directory.
OLD UPDATE
(This method requires updating symlinks when versions change... i.e. not ideal)
For those who use homebrew, it is probably better to just use a symlink, otherwise all kinds of havoc could emerge. e.g. the official python binary will modify your ~./bash_profile
so that python3
and pip3
no longer point to brew...
In my case I've now symlinked the homebrew version (along the lines of the discussion in the answer provided by @Evenfire):
sudo ln -s /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework /Library/Frameworks/Python.framework
QGIS3 then complained that certain python packages were missing, which can be installed with pip3, e.g.
pip3 install owslib PyYaml psycopg2 jinja2 pygments plotly
It might also complain about gdal
, in my case I simply used brew:
brew install gdal
ORIGINAL
(This method is not recommended for brew users!)
I've also got python3 installed via brew and am running into the same difficulty.
What seems to work is to install the official python binaries which install to /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
From trial and error, this has to be done before the 1 Install GDAL Complete.pkg
package is installed, which otherwise installs against the wrong python and QGIS 3 will complain about missing python packages.
Those with time to experiment could conceivably try symlinks to get around directly using the brew (or other) python3.
Thanks! The install of python just before the "1 Install GDAL Complete.pkg" did the trick for me and solved the error "module osgeo not found".
– Javier Fajardo
Mar 13 '18 at 18:35
Do you have GDAL also installed withhomebrew
? I created the symlink forpython
but the installer is asking forGDAL2.2
which I have installed withhomebrew
.
– Duccio A
May 18 '18 at 10:32
In my case I don't havegdal
installed with homebrew. My understanding is that QGIS specifically depends on KyngChaos' version (unfortunately!). So it might be necessary to install the gdal provided with QGIS and then it might work.
– songololo
May 18 '18 at 13:26
1
I noticed that installing binaries for the newer python3.7 is not supported by the newest QGIS installer! python3.6.6 is necessary, and it can be downloaded from the link that you provided in this answer.
– Javier Fajardo
Jul 18 '18 at 15:06
2
This might be a very stupid question, but once you've installed qgis via homebrew, how do you run it? Figured it out:qgis3
is the command.
– Juan Francisco Saldarriaga
Aug 20 '18 at 17:13
|
show 2 more comments
NEW UPDATE
QGIS3 can now be installed from osgeo
's homebrew tap, which saves mucking about with python symlinks... i.e.
brew tap osgeo/osgeo4mac
brew install qgis
Then type qgis
in the terminal to launch, then pin the dock menu icon to simplify launching in future.
Note that the installation console logs will also provide an example for how to symlink qgis
to your applications directory.
OLD UPDATE
(This method requires updating symlinks when versions change... i.e. not ideal)
For those who use homebrew, it is probably better to just use a symlink, otherwise all kinds of havoc could emerge. e.g. the official python binary will modify your ~./bash_profile
so that python3
and pip3
no longer point to brew...
In my case I've now symlinked the homebrew version (along the lines of the discussion in the answer provided by @Evenfire):
sudo ln -s /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework /Library/Frameworks/Python.framework
QGIS3 then complained that certain python packages were missing, which can be installed with pip3, e.g.
pip3 install owslib PyYaml psycopg2 jinja2 pygments plotly
It might also complain about gdal
, in my case I simply used brew:
brew install gdal
ORIGINAL
(This method is not recommended for brew users!)
I've also got python3 installed via brew and am running into the same difficulty.
What seems to work is to install the official python binaries which install to /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
From trial and error, this has to be done before the 1 Install GDAL Complete.pkg
package is installed, which otherwise installs against the wrong python and QGIS 3 will complain about missing python packages.
Those with time to experiment could conceivably try symlinks to get around directly using the brew (or other) python3.
Thanks! The install of python just before the "1 Install GDAL Complete.pkg" did the trick for me and solved the error "module osgeo not found".
– Javier Fajardo
Mar 13 '18 at 18:35
Do you have GDAL also installed withhomebrew
? I created the symlink forpython
but the installer is asking forGDAL2.2
which I have installed withhomebrew
.
– Duccio A
May 18 '18 at 10:32
In my case I don't havegdal
installed with homebrew. My understanding is that QGIS specifically depends on KyngChaos' version (unfortunately!). So it might be necessary to install the gdal provided with QGIS and then it might work.
– songololo
May 18 '18 at 13:26
1
I noticed that installing binaries for the newer python3.7 is not supported by the newest QGIS installer! python3.6.6 is necessary, and it can be downloaded from the link that you provided in this answer.
– Javier Fajardo
Jul 18 '18 at 15:06
2
This might be a very stupid question, but once you've installed qgis via homebrew, how do you run it? Figured it out:qgis3
is the command.
– Juan Francisco Saldarriaga
Aug 20 '18 at 17:13
|
show 2 more comments
NEW UPDATE
QGIS3 can now be installed from osgeo
's homebrew tap, which saves mucking about with python symlinks... i.e.
brew tap osgeo/osgeo4mac
brew install qgis
Then type qgis
in the terminal to launch, then pin the dock menu icon to simplify launching in future.
Note that the installation console logs will also provide an example for how to symlink qgis
to your applications directory.
OLD UPDATE
(This method requires updating symlinks when versions change... i.e. not ideal)
For those who use homebrew, it is probably better to just use a symlink, otherwise all kinds of havoc could emerge. e.g. the official python binary will modify your ~./bash_profile
so that python3
and pip3
no longer point to brew...
In my case I've now symlinked the homebrew version (along the lines of the discussion in the answer provided by @Evenfire):
sudo ln -s /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework /Library/Frameworks/Python.framework
QGIS3 then complained that certain python packages were missing, which can be installed with pip3, e.g.
pip3 install owslib PyYaml psycopg2 jinja2 pygments plotly
It might also complain about gdal
, in my case I simply used brew:
brew install gdal
ORIGINAL
(This method is not recommended for brew users!)
I've also got python3 installed via brew and am running into the same difficulty.
What seems to work is to install the official python binaries which install to /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
From trial and error, this has to be done before the 1 Install GDAL Complete.pkg
package is installed, which otherwise installs against the wrong python and QGIS 3 will complain about missing python packages.
Those with time to experiment could conceivably try symlinks to get around directly using the brew (or other) python3.
NEW UPDATE
QGIS3 can now be installed from osgeo
's homebrew tap, which saves mucking about with python symlinks... i.e.
brew tap osgeo/osgeo4mac
brew install qgis
Then type qgis
in the terminal to launch, then pin the dock menu icon to simplify launching in future.
Note that the installation console logs will also provide an example for how to symlink qgis
to your applications directory.
OLD UPDATE
(This method requires updating symlinks when versions change... i.e. not ideal)
For those who use homebrew, it is probably better to just use a symlink, otherwise all kinds of havoc could emerge. e.g. the official python binary will modify your ~./bash_profile
so that python3
and pip3
no longer point to brew...
In my case I've now symlinked the homebrew version (along the lines of the discussion in the answer provided by @Evenfire):
sudo ln -s /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework /Library/Frameworks/Python.framework
QGIS3 then complained that certain python packages were missing, which can be installed with pip3, e.g.
pip3 install owslib PyYaml psycopg2 jinja2 pygments plotly
It might also complain about gdal
, in my case I simply used brew:
brew install gdal
ORIGINAL
(This method is not recommended for brew users!)
I've also got python3 installed via brew and am running into the same difficulty.
What seems to work is to install the official python binaries which install to /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
From trial and error, this has to be done before the 1 Install GDAL Complete.pkg
package is installed, which otherwise installs against the wrong python and QGIS 3 will complain about missing python packages.
Those with time to experiment could conceivably try symlinks to get around directly using the brew (or other) python3.
edited Feb 20 at 13:15
answered Mar 13 '18 at 10:53
songololosongololo
1,032915
1,032915
Thanks! The install of python just before the "1 Install GDAL Complete.pkg" did the trick for me and solved the error "module osgeo not found".
– Javier Fajardo
Mar 13 '18 at 18:35
Do you have GDAL also installed withhomebrew
? I created the symlink forpython
but the installer is asking forGDAL2.2
which I have installed withhomebrew
.
– Duccio A
May 18 '18 at 10:32
In my case I don't havegdal
installed with homebrew. My understanding is that QGIS specifically depends on KyngChaos' version (unfortunately!). So it might be necessary to install the gdal provided with QGIS and then it might work.
– songololo
May 18 '18 at 13:26
1
I noticed that installing binaries for the newer python3.7 is not supported by the newest QGIS installer! python3.6.6 is necessary, and it can be downloaded from the link that you provided in this answer.
– Javier Fajardo
Jul 18 '18 at 15:06
2
This might be a very stupid question, but once you've installed qgis via homebrew, how do you run it? Figured it out:qgis3
is the command.
– Juan Francisco Saldarriaga
Aug 20 '18 at 17:13
|
show 2 more comments
Thanks! The install of python just before the "1 Install GDAL Complete.pkg" did the trick for me and solved the error "module osgeo not found".
– Javier Fajardo
Mar 13 '18 at 18:35
Do you have GDAL also installed withhomebrew
? I created the symlink forpython
but the installer is asking forGDAL2.2
which I have installed withhomebrew
.
– Duccio A
May 18 '18 at 10:32
In my case I don't havegdal
installed with homebrew. My understanding is that QGIS specifically depends on KyngChaos' version (unfortunately!). So it might be necessary to install the gdal provided with QGIS and then it might work.
– songololo
May 18 '18 at 13:26
1
I noticed that installing binaries for the newer python3.7 is not supported by the newest QGIS installer! python3.6.6 is necessary, and it can be downloaded from the link that you provided in this answer.
– Javier Fajardo
Jul 18 '18 at 15:06
2
This might be a very stupid question, but once you've installed qgis via homebrew, how do you run it? Figured it out:qgis3
is the command.
– Juan Francisco Saldarriaga
Aug 20 '18 at 17:13
Thanks! The install of python just before the "1 Install GDAL Complete.pkg" did the trick for me and solved the error "module osgeo not found".
– Javier Fajardo
Mar 13 '18 at 18:35
Thanks! The install of python just before the "1 Install GDAL Complete.pkg" did the trick for me and solved the error "module osgeo not found".
– Javier Fajardo
Mar 13 '18 at 18:35
Do you have GDAL also installed with
homebrew
? I created the symlink for python
but the installer is asking for GDAL2.2
which I have installed with homebrew
.– Duccio A
May 18 '18 at 10:32
Do you have GDAL also installed with
homebrew
? I created the symlink for python
but the installer is asking for GDAL2.2
which I have installed with homebrew
.– Duccio A
May 18 '18 at 10:32
In my case I don't have
gdal
installed with homebrew. My understanding is that QGIS specifically depends on KyngChaos' version (unfortunately!). So it might be necessary to install the gdal provided with QGIS and then it might work.– songololo
May 18 '18 at 13:26
In my case I don't have
gdal
installed with homebrew. My understanding is that QGIS specifically depends on KyngChaos' version (unfortunately!). So it might be necessary to install the gdal provided with QGIS and then it might work.– songololo
May 18 '18 at 13:26
1
1
I noticed that installing binaries for the newer python3.7 is not supported by the newest QGIS installer! python3.6.6 is necessary, and it can be downloaded from the link that you provided in this answer.
– Javier Fajardo
Jul 18 '18 at 15:06
I noticed that installing binaries for the newer python3.7 is not supported by the newest QGIS installer! python3.6.6 is necessary, and it can be downloaded from the link that you provided in this answer.
– Javier Fajardo
Jul 18 '18 at 15:06
2
2
This might be a very stupid question, but once you've installed qgis via homebrew, how do you run it? Figured it out:
qgis3
is the command.– Juan Francisco Saldarriaga
Aug 20 '18 at 17:13
This might be a very stupid question, but once you've installed qgis via homebrew, how do you run it? Figured it out:
qgis3
is the command.– Juan Francisco Saldarriaga
Aug 20 '18 at 17:13
|
show 2 more comments
If you have installed Python3 with Homebrew, you can use symlinks to comply with the installer needs (as suggested by @shongololo).
It seems, the installer needs Python3 installed at (thanks @shongololo): /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
(Install python3 using Homebrew to follow this part)
Find the Cellar
directory on your machine. Mine is at: /usr/local/Cellar
.
Then find this directory: /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework
(where 3.x.y_z
is the python3 version you want to use, for me it is 3.6.4_2
). This is the directory we want the installer to find. We need to link to this directory from the directory the installer is looking at by making a Symbolic Link.
Using the ln
command (ln -s TARGET_FILE_TO_LINK_TO LINK_NAME
):
ln -s /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework /Library/Frameworks/Python.framework
will do the trick. You certainly need to sudo
.
This has worked for me.
(The "Cellar" is a place that all your "kegs" go. Homebrew installs packages to their own directory (in the Cellar) and then symlinks their files into /usr/local/. [from Ryan Kulla's blog])
Thanks for this info. I fixed already with "default" installer. Since I don't need Python for anything else that will work for me. I in general prefer to use Homebrew for consistency. And Apple has v2 installed by default. Was are the tradeoffs between using the two installers (Homebrew and one from the python site)? I guess that Homebrew will keep python updated more easily. And you can uninstall easily. I have no idea how to do that with the other install method. Got me thinking to go back to the Homebrew version since I know how to manage it.
– Greg
Mar 13 '18 at 19:59
@greg homebrew is easier to much easier to manage, e.g. uninstalls. It also keeps your various package interdependencies interlinked quite nicely.
– songololo
Mar 14 '18 at 9:34
1
@evenfire thanks for the nice explanation.brew info python
is a handy way to quickly find paths to existing brewed python installs
– songololo
Mar 14 '18 at 9:36
4
A heads-up that brew recently changed their defaultpython
to v3, so for those that have recently updated / upgraded their homebrew, the above paths would containpython
and notpython3
– songololo
Mar 14 '18 at 10:13
4
How could I connect the framework file with anaconda python? (I cannot find python.framework in anaconda dirs)
– natsuapo
Mar 15 '18 at 14:16
|
show 6 more comments
If you have installed Python3 with Homebrew, you can use symlinks to comply with the installer needs (as suggested by @shongololo).
It seems, the installer needs Python3 installed at (thanks @shongololo): /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
(Install python3 using Homebrew to follow this part)
Find the Cellar
directory on your machine. Mine is at: /usr/local/Cellar
.
Then find this directory: /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework
(where 3.x.y_z
is the python3 version you want to use, for me it is 3.6.4_2
). This is the directory we want the installer to find. We need to link to this directory from the directory the installer is looking at by making a Symbolic Link.
Using the ln
command (ln -s TARGET_FILE_TO_LINK_TO LINK_NAME
):
ln -s /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework /Library/Frameworks/Python.framework
will do the trick. You certainly need to sudo
.
This has worked for me.
(The "Cellar" is a place that all your "kegs" go. Homebrew installs packages to their own directory (in the Cellar) and then symlinks their files into /usr/local/. [from Ryan Kulla's blog])
Thanks for this info. I fixed already with "default" installer. Since I don't need Python for anything else that will work for me. I in general prefer to use Homebrew for consistency. And Apple has v2 installed by default. Was are the tradeoffs between using the two installers (Homebrew and one from the python site)? I guess that Homebrew will keep python updated more easily. And you can uninstall easily. I have no idea how to do that with the other install method. Got me thinking to go back to the Homebrew version since I know how to manage it.
– Greg
Mar 13 '18 at 19:59
@greg homebrew is easier to much easier to manage, e.g. uninstalls. It also keeps your various package interdependencies interlinked quite nicely.
– songololo
Mar 14 '18 at 9:34
1
@evenfire thanks for the nice explanation.brew info python
is a handy way to quickly find paths to existing brewed python installs
– songololo
Mar 14 '18 at 9:36
4
A heads-up that brew recently changed their defaultpython
to v3, so for those that have recently updated / upgraded their homebrew, the above paths would containpython
and notpython3
– songololo
Mar 14 '18 at 10:13
4
How could I connect the framework file with anaconda python? (I cannot find python.framework in anaconda dirs)
– natsuapo
Mar 15 '18 at 14:16
|
show 6 more comments
If you have installed Python3 with Homebrew, you can use symlinks to comply with the installer needs (as suggested by @shongololo).
It seems, the installer needs Python3 installed at (thanks @shongololo): /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
(Install python3 using Homebrew to follow this part)
Find the Cellar
directory on your machine. Mine is at: /usr/local/Cellar
.
Then find this directory: /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework
(where 3.x.y_z
is the python3 version you want to use, for me it is 3.6.4_2
). This is the directory we want the installer to find. We need to link to this directory from the directory the installer is looking at by making a Symbolic Link.
Using the ln
command (ln -s TARGET_FILE_TO_LINK_TO LINK_NAME
):
ln -s /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework /Library/Frameworks/Python.framework
will do the trick. You certainly need to sudo
.
This has worked for me.
(The "Cellar" is a place that all your "kegs" go. Homebrew installs packages to their own directory (in the Cellar) and then symlinks their files into /usr/local/. [from Ryan Kulla's blog])
If you have installed Python3 with Homebrew, you can use symlinks to comply with the installer needs (as suggested by @shongololo).
It seems, the installer needs Python3 installed at (thanks @shongololo): /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
.
(Install python3 using Homebrew to follow this part)
Find the Cellar
directory on your machine. Mine is at: /usr/local/Cellar
.
Then find this directory: /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework
(where 3.x.y_z
is the python3 version you want to use, for me it is 3.6.4_2
). This is the directory we want the installer to find. We need to link to this directory from the directory the installer is looking at by making a Symbolic Link.
Using the ln
command (ln -s TARGET_FILE_TO_LINK_TO LINK_NAME
):
ln -s /usr/local/Cellar/python3/3.x.y_z/Frameworks/Python.framework /Library/Frameworks/Python.framework
will do the trick. You certainly need to sudo
.
This has worked for me.
(The "Cellar" is a place that all your "kegs" go. Homebrew installs packages to their own directory (in the Cellar) and then symlinks their files into /usr/local/. [from Ryan Kulla's blog])
edited Mar 13 '18 at 15:55
answered Mar 13 '18 at 15:50
EvenfireEvenfire
36126
36126
Thanks for this info. I fixed already with "default" installer. Since I don't need Python for anything else that will work for me. I in general prefer to use Homebrew for consistency. And Apple has v2 installed by default. Was are the tradeoffs between using the two installers (Homebrew and one from the python site)? I guess that Homebrew will keep python updated more easily. And you can uninstall easily. I have no idea how to do that with the other install method. Got me thinking to go back to the Homebrew version since I know how to manage it.
– Greg
Mar 13 '18 at 19:59
@greg homebrew is easier to much easier to manage, e.g. uninstalls. It also keeps your various package interdependencies interlinked quite nicely.
– songololo
Mar 14 '18 at 9:34
1
@evenfire thanks for the nice explanation.brew info python
is a handy way to quickly find paths to existing brewed python installs
– songololo
Mar 14 '18 at 9:36
4
A heads-up that brew recently changed their defaultpython
to v3, so for those that have recently updated / upgraded their homebrew, the above paths would containpython
and notpython3
– songololo
Mar 14 '18 at 10:13
4
How could I connect the framework file with anaconda python? (I cannot find python.framework in anaconda dirs)
– natsuapo
Mar 15 '18 at 14:16
|
show 6 more comments
Thanks for this info. I fixed already with "default" installer. Since I don't need Python for anything else that will work for me. I in general prefer to use Homebrew for consistency. And Apple has v2 installed by default. Was are the tradeoffs between using the two installers (Homebrew and one from the python site)? I guess that Homebrew will keep python updated more easily. And you can uninstall easily. I have no idea how to do that with the other install method. Got me thinking to go back to the Homebrew version since I know how to manage it.
– Greg
Mar 13 '18 at 19:59
@greg homebrew is easier to much easier to manage, e.g. uninstalls. It also keeps your various package interdependencies interlinked quite nicely.
– songololo
Mar 14 '18 at 9:34
1
@evenfire thanks for the nice explanation.brew info python
is a handy way to quickly find paths to existing brewed python installs
– songololo
Mar 14 '18 at 9:36
4
A heads-up that brew recently changed their defaultpython
to v3, so for those that have recently updated / upgraded their homebrew, the above paths would containpython
and notpython3
– songololo
Mar 14 '18 at 10:13
4
How could I connect the framework file with anaconda python? (I cannot find python.framework in anaconda dirs)
– natsuapo
Mar 15 '18 at 14:16
Thanks for this info. I fixed already with "default" installer. Since I don't need Python for anything else that will work for me. I in general prefer to use Homebrew for consistency. And Apple has v2 installed by default. Was are the tradeoffs between using the two installers (Homebrew and one from the python site)? I guess that Homebrew will keep python updated more easily. And you can uninstall easily. I have no idea how to do that with the other install method. Got me thinking to go back to the Homebrew version since I know how to manage it.
– Greg
Mar 13 '18 at 19:59
Thanks for this info. I fixed already with "default" installer. Since I don't need Python for anything else that will work for me. I in general prefer to use Homebrew for consistency. And Apple has v2 installed by default. Was are the tradeoffs between using the two installers (Homebrew and one from the python site)? I guess that Homebrew will keep python updated more easily. And you can uninstall easily. I have no idea how to do that with the other install method. Got me thinking to go back to the Homebrew version since I know how to manage it.
– Greg
Mar 13 '18 at 19:59
@greg homebrew is easier to much easier to manage, e.g. uninstalls. It also keeps your various package interdependencies interlinked quite nicely.
– songololo
Mar 14 '18 at 9:34
@greg homebrew is easier to much easier to manage, e.g. uninstalls. It also keeps your various package interdependencies interlinked quite nicely.
– songololo
Mar 14 '18 at 9:34
1
1
@evenfire thanks for the nice explanation.
brew info python
is a handy way to quickly find paths to existing brewed python installs– songololo
Mar 14 '18 at 9:36
@evenfire thanks for the nice explanation.
brew info python
is a handy way to quickly find paths to existing brewed python installs– songololo
Mar 14 '18 at 9:36
4
4
A heads-up that brew recently changed their default
python
to v3, so for those that have recently updated / upgraded their homebrew, the above paths would contain python
and not python3
– songololo
Mar 14 '18 at 10:13
A heads-up that brew recently changed their default
python
to v3, so for those that have recently updated / upgraded their homebrew, the above paths would contain python
and not python3
– songololo
Mar 14 '18 at 10:13
4
4
How could I connect the framework file with anaconda python? (I cannot find python.framework in anaconda dirs)
– natsuapo
Mar 15 '18 at 14:16
How could I connect the framework file with anaconda python? (I cannot find python.framework in anaconda dirs)
– natsuapo
Mar 15 '18 at 14:16
|
show 6 more comments
I followed the link that came with the QGIS installer to https://www.python.org/downloads/ and installed python3 that way. The QGIS installer was then happy.
This seems to be contradicted by comments here:
"Because QGIS links the python library, you must install the python.org Python 3.6. You can't substitute another python 3 installation. Sorry, that's the way it is."
Posted at http://www.kyngchaos.com/blog/2018/20180315_qgis_3_must_use_python.org_python_3. If I knew how to contact William Kyngesbury, I would. He is performing a great service though.
add a comment |
I followed the link that came with the QGIS installer to https://www.python.org/downloads/ and installed python3 that way. The QGIS installer was then happy.
This seems to be contradicted by comments here:
"Because QGIS links the python library, you must install the python.org Python 3.6. You can't substitute another python 3 installation. Sorry, that's the way it is."
Posted at http://www.kyngchaos.com/blog/2018/20180315_qgis_3_must_use_python.org_python_3. If I knew how to contact William Kyngesbury, I would. He is performing a great service though.
add a comment |
I followed the link that came with the QGIS installer to https://www.python.org/downloads/ and installed python3 that way. The QGIS installer was then happy.
This seems to be contradicted by comments here:
"Because QGIS links the python library, you must install the python.org Python 3.6. You can't substitute another python 3 installation. Sorry, that's the way it is."
Posted at http://www.kyngchaos.com/blog/2018/20180315_qgis_3_must_use_python.org_python_3. If I knew how to contact William Kyngesbury, I would. He is performing a great service though.
I followed the link that came with the QGIS installer to https://www.python.org/downloads/ and installed python3 that way. The QGIS installer was then happy.
This seems to be contradicted by comments here:
"Because QGIS links the python library, you must install the python.org Python 3.6. You can't substitute another python 3 installation. Sorry, that's the way it is."
Posted at http://www.kyngchaos.com/blog/2018/20180315_qgis_3_must_use_python.org_python_3. If I knew how to contact William Kyngesbury, I would. He is performing a great service though.
edited Mar 16 '18 at 1:08
answered Mar 11 '18 at 22:08
GregGreg
4711313
4711313
add a comment |
add a comment |
A version using pyenv
and brew
:
brew install pyenv
env PYTHON_CONFIGURE_OPTS="--enable-framework CC=clang" pyenv install 3.6.5
sudo ln -s /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -R /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -r /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/ /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
sudo cp /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
#
it should be enough just to run first 2 lines and thenln -s ~/.pyenv/versions/3.6.5/Python.framework /Library/Frameworks/Python.framework
– Alex Markov
Jul 4 '18 at 8:53
add a comment |
A version using pyenv
and brew
:
brew install pyenv
env PYTHON_CONFIGURE_OPTS="--enable-framework CC=clang" pyenv install 3.6.5
sudo ln -s /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -R /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -r /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/ /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
sudo cp /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
#
it should be enough just to run first 2 lines and thenln -s ~/.pyenv/versions/3.6.5/Python.framework /Library/Frameworks/Python.framework
– Alex Markov
Jul 4 '18 at 8:53
add a comment |
A version using pyenv
and brew
:
brew install pyenv
env PYTHON_CONFIGURE_OPTS="--enable-framework CC=clang" pyenv install 3.6.5
sudo ln -s /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -R /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -r /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/ /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
sudo cp /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
#
A version using pyenv
and brew
:
brew install pyenv
env PYTHON_CONFIGURE_OPTS="--enable-framework CC=clang" pyenv install 3.6.5
sudo ln -s /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -R /Users/$USER/.pyenv/versions/3.6.5/Python.framework/Versions/3.6 /Library/Frameworks/Python.framework/Versions/3.6
sudo cp -r /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/ /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
sudo cp /Users/$USER/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
#
edited Jun 17 '18 at 6:09
answered Jun 17 '18 at 5:33
jmunschjmunsch
1214
1214
it should be enough just to run first 2 lines and thenln -s ~/.pyenv/versions/3.6.5/Python.framework /Library/Frameworks/Python.framework
– Alex Markov
Jul 4 '18 at 8:53
add a comment |
it should be enough just to run first 2 lines and thenln -s ~/.pyenv/versions/3.6.5/Python.framework /Library/Frameworks/Python.framework
– Alex Markov
Jul 4 '18 at 8:53
it should be enough just to run first 2 lines and then
ln -s ~/.pyenv/versions/3.6.5/Python.framework /Library/Frameworks/Python.framework
– Alex Markov
Jul 4 '18 at 8:53
it should be enough just to run first 2 lines and then
ln -s ~/.pyenv/versions/3.6.5/Python.framework /Library/Frameworks/Python.framework
– Alex Markov
Jul 4 '18 at 8:53
add a comment |
I faced the same issue when installing QGIS on mac.
It was failed, although I tried to softlink it with other python installed by anaconda, etc.
The way I solved the issue: download related python version in python.org and install.
add a comment |
I faced the same issue when installing QGIS on mac.
It was failed, although I tried to softlink it with other python installed by anaconda, etc.
The way I solved the issue: download related python version in python.org and install.
add a comment |
I faced the same issue when installing QGIS on mac.
It was failed, although I tried to softlink it with other python installed by anaconda, etc.
The way I solved the issue: download related python version in python.org and install.
I faced the same issue when installing QGIS on mac.
It was failed, although I tried to softlink it with other python installed by anaconda, etc.
The way I solved the issue: download related python version in python.org and install.
edited Jul 17 '18 at 4:40
answered Jul 17 '18 at 4:33
ChokureiChokurei
11
11
add a comment |
add a comment |
Another version of pyenv
and symlinking, using brew
just for dependencies.
Recommended location to install pyenv
is ~/.pyenv
($HOME/.pyenv
), but could be any location.
clone
pyenv
repository (maybe adapt~/.pyenv
to/path/to/pyenv
)
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
setup
pyenv
in~/.bash_profile
(maybe adapt$HOME/.pyenv
to/path/to/pyenv
, be aware, that the third line must stay the final one of.bash_profile
, even after future updates)
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfi' >> ~/.bash_profile
restart shell
exec "$SHELL"
install dependencies
readline
andxz
the easy way withbrew
brew install readline xz
install Python 3.6.x containing
Python.framework
(maybe adapt version number)
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.8
always rehash after adding a new Python version to
pyenv
pyenv rehash
symlink
Python.framework
sudo ln -s $(pyenv root)/versions/3.6.8/Python.framework /Library/Frameworks/Python.framework
Now the QGIS 3.6.0 installer from qgis.org should run fine plus macOS is well prepared for multiple Python versions, playing nice with system's Python.
New contributor
add a comment |
Another version of pyenv
and symlinking, using brew
just for dependencies.
Recommended location to install pyenv
is ~/.pyenv
($HOME/.pyenv
), but could be any location.
clone
pyenv
repository (maybe adapt~/.pyenv
to/path/to/pyenv
)
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
setup
pyenv
in~/.bash_profile
(maybe adapt$HOME/.pyenv
to/path/to/pyenv
, be aware, that the third line must stay the final one of.bash_profile
, even after future updates)
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfi' >> ~/.bash_profile
restart shell
exec "$SHELL"
install dependencies
readline
andxz
the easy way withbrew
brew install readline xz
install Python 3.6.x containing
Python.framework
(maybe adapt version number)
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.8
always rehash after adding a new Python version to
pyenv
pyenv rehash
symlink
Python.framework
sudo ln -s $(pyenv root)/versions/3.6.8/Python.framework /Library/Frameworks/Python.framework
Now the QGIS 3.6.0 installer from qgis.org should run fine plus macOS is well prepared for multiple Python versions, playing nice with system's Python.
New contributor
add a comment |
Another version of pyenv
and symlinking, using brew
just for dependencies.
Recommended location to install pyenv
is ~/.pyenv
($HOME/.pyenv
), but could be any location.
clone
pyenv
repository (maybe adapt~/.pyenv
to/path/to/pyenv
)
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
setup
pyenv
in~/.bash_profile
(maybe adapt$HOME/.pyenv
to/path/to/pyenv
, be aware, that the third line must stay the final one of.bash_profile
, even after future updates)
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfi' >> ~/.bash_profile
restart shell
exec "$SHELL"
install dependencies
readline
andxz
the easy way withbrew
brew install readline xz
install Python 3.6.x containing
Python.framework
(maybe adapt version number)
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.8
always rehash after adding a new Python version to
pyenv
pyenv rehash
symlink
Python.framework
sudo ln -s $(pyenv root)/versions/3.6.8/Python.framework /Library/Frameworks/Python.framework
Now the QGIS 3.6.0 installer from qgis.org should run fine plus macOS is well prepared for multiple Python versions, playing nice with system's Python.
New contributor
Another version of pyenv
and symlinking, using brew
just for dependencies.
Recommended location to install pyenv
is ~/.pyenv
($HOME/.pyenv
), but could be any location.
clone
pyenv
repository (maybe adapt~/.pyenv
to/path/to/pyenv
)
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
setup
pyenv
in~/.bash_profile
(maybe adapt$HOME/.pyenv
to/path/to/pyenv
, be aware, that the third line must stay the final one of.bash_profile
, even after future updates)
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfi' >> ~/.bash_profile
restart shell
exec "$SHELL"
install dependencies
readline
andxz
the easy way withbrew
brew install readline xz
install Python 3.6.x containing
Python.framework
(maybe adapt version number)
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.8
always rehash after adding a new Python version to
pyenv
pyenv rehash
symlink
Python.framework
sudo ln -s $(pyenv root)/versions/3.6.8/Python.framework /Library/Frameworks/Python.framework
Now the QGIS 3.6.0 installer from qgis.org should run fine plus macOS is well prepared for multiple Python versions, playing nice with system's Python.
New contributor
New contributor
answered 12 mins ago
stacklessstackless
11
11
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- 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%2fgis.stackexchange.com%2fquestions%2f274381%2finstalling-qgis3-on-mac%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
Where are the Kyngchaos installers? I can't find them anywhere.
– Alex Leith
Mar 11 '18 at 22:18
Since he hasn't updated the link, I guessed it to be kyngchaos.com/files/software/qgis/QGIS-3.0.0-1.dmg
– Greg
Mar 11 '18 at 22:23
It's not promoted on his webpage yet is it?
– Alex Leith
Mar 11 '18 at 22:49
2
"QGIS 2.18.15-4" is repeated twice at kyngchaos.com/software/qgis and the first should be "QGIS-3.0.0-1". I think it's a copy and paste error, in other words he copied the old link etc and forgot to update. How would I guess this—not because I've ever done it!
– Greg
Mar 11 '18 at 22:58
4
Today (12 Mar 2019), the link at kyngchaos.com/software/qgis is updated.
– Greg
Mar 12 '18 at 18:47