Starting QGIS with virtualenv Python?How to access QGIS module from my virtualenvHow to solve an installation...
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
RSA: Danger of using p to create q
Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?
Alternative to sending password over mail?
Client team has low performances and low technical skills: we always fix their work and now they stop collaborate with us. How to solve?
What defenses are there against being summoned by the Gate spell?
Why is Minecraft giving an OpenGL error?
What are these boxed doors outside store fronts in New York?
Is it possible to run Internet Explorer on OS X El Capitan?
Is it unprofessional to ask if a job posting on GlassDoor is real?
Are the number of citations and number of published articles the most important criteria for a tenure promotion?
Is it legal for company to use my work email to pretend I still work there?
What are the disadvantages of having a left skewed distribution?
Did Shadowfax go to Valinor?
Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?
What doth I be?
Java Casting: Java 11 throws LambdaConversionException while 1.8 does not
Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?
Do other languages have an "irreversible aspect"?
Horror movie about a virus at the prom; beginning and end are stylized as a cartoon
How to move a thin line with the black arrow in Illustrator?
Revoked SSL certificate
I'm flying to France today and my passport expires in less than 2 months
Important Resources for Dark Age Civilizations?
Starting QGIS with virtualenv Python?
How to access QGIS module from my virtualenvHow to solve an installation problem involving QGIS, Python, and a plug-in?Problem loading PyQGISDistribute QGis plugin which depends on certain Python packages“Couldn't load PyQGIS” Error running QGIS on Ubuntu 14.04QuickFinder QGIS plugin generates python errorsIDE (PyCharm) settings for developing with Processing in Linux (Ubuntu)Import Pandas or any Python module into QGIS internal PythonInstalling external python packages for QGIS 3?Python not installed in windows based QGIS on a Mac running ParallelsAdding missing python packages to QGIS Plugin?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
is there any means of telling QGIS to use a different Python installation than the default, system-wide one?
E.g. use some virtualenv Python /myvirtualenv/bin/python
instead of /usr/bin/python
?
Background: I'm developing a custom plugin that uses some modules which are only installed in a certain virtualenv, but not system-wide.
The virtualenv is allowed to access system-wide packages, so the qgis core libs should still be accessible when using that virtualenv.
The only solution that I see right now is to install the required modules in the system-wide Python. However, I'd like to keep them in the virtualenv only, if possible.
qgis qgis-plugins pyqgis qgis-2
add a comment |
is there any means of telling QGIS to use a different Python installation than the default, system-wide one?
E.g. use some virtualenv Python /myvirtualenv/bin/python
instead of /usr/bin/python
?
Background: I'm developing a custom plugin that uses some modules which are only installed in a certain virtualenv, but not system-wide.
The virtualenv is allowed to access system-wide packages, so the qgis core libs should still be accessible when using that virtualenv.
The only solution that I see right now is to install the required modules in the system-wide Python. However, I'd like to keep them in the virtualenv only, if possible.
qgis qgis-plugins pyqgis qgis-2
add a comment |
is there any means of telling QGIS to use a different Python installation than the default, system-wide one?
E.g. use some virtualenv Python /myvirtualenv/bin/python
instead of /usr/bin/python
?
Background: I'm developing a custom plugin that uses some modules which are only installed in a certain virtualenv, but not system-wide.
The virtualenv is allowed to access system-wide packages, so the qgis core libs should still be accessible when using that virtualenv.
The only solution that I see right now is to install the required modules in the system-wide Python. However, I'd like to keep them in the virtualenv only, if possible.
qgis qgis-plugins pyqgis qgis-2
is there any means of telling QGIS to use a different Python installation than the default, system-wide one?
E.g. use some virtualenv Python /myvirtualenv/bin/python
instead of /usr/bin/python
?
Background: I'm developing a custom plugin that uses some modules which are only installed in a certain virtualenv, but not system-wide.
The virtualenv is allowed to access system-wide packages, so the qgis core libs should still be accessible when using that virtualenv.
The only solution that I see right now is to install the required modules in the system-wide Python. However, I'd like to keep them in the virtualenv only, if possible.
qgis qgis-plugins pyqgis qgis-2
qgis qgis-plugins pyqgis qgis-2
edited 26 mins ago
PolyGeo♦
53.9k1781245
53.9k1781245
asked Jan 27 '15 at 12:43
matze09matze09
484
484
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can first load your virtual environment and then start QGIS in the same terminal where you loaded the virtual environment.
for example in linux:
source /myvirtualenv/bin/activate
qgis
add a comment |
I cannot guarantee this will work but perhaps you could try setting a custom variable to load your python version:
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%2f131932%2fstarting-qgis-with-virtualenv-python%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can first load your virtual environment and then start QGIS in the same terminal where you loaded the virtual environment.
for example in linux:
source /myvirtualenv/bin/activate
qgis
add a comment |
You can first load your virtual environment and then start QGIS in the same terminal where you loaded the virtual environment.
for example in linux:
source /myvirtualenv/bin/activate
qgis
add a comment |
You can first load your virtual environment and then start QGIS in the same terminal where you loaded the virtual environment.
for example in linux:
source /myvirtualenv/bin/activate
qgis
You can first load your virtual environment and then start QGIS in the same terminal where you loaded the virtual environment.
for example in linux:
source /myvirtualenv/bin/activate
qgis
edited 26 mins ago
PolyGeo♦
53.9k1781245
53.9k1781245
answered Jan 29 '15 at 10:21
Tommaso Di BucchianicoTommaso Di Bucchianico
351310
351310
add a comment |
add a comment |
I cannot guarantee this will work but perhaps you could try setting a custom variable to load your python version:
add a comment |
I cannot guarantee this will work but perhaps you could try setting a custom variable to load your python version:
add a comment |
I cannot guarantee this will work but perhaps you could try setting a custom variable to load your python version:
I cannot guarantee this will work but perhaps you could try setting a custom variable to load your python version:
answered Jan 27 '15 at 12:52
JosephJoseph
58.7k7101206
58.7k7101206
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%2f131932%2fstarting-qgis-with-virtualenv-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