How do I force offlineimap to use python2.7?
I'm setting up a new computer and installed offlineimap
with pip install --user offlineimap
but when I try to run it I'm getting a series of errors because offlineimap doesn't support Python3:
https://github.com/OfflineIMAP/offlineimap/issues/472
I do have 2.7 installed as well as 3:
amanda@host:~$ python --version
Python 2.7.15rc1
but even I'm not sure how to force offlineimap to use it.
Per https://stackoverflow.com/questions/10919569/install-a-module-using-pip-for-specific-python-version I uninstalled and tried to reinstall, specifying the python version, but that's choking in its own special way:
amanda@host:~$ python2.7 ~/.local/bin/pip install --user offlineimap
Traceback (most recent call last):
File "/home/amanda/.local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named pip._internal
The full OfflineIMAP error:
OfflineIMAP 7.2.1
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.57 (bundled), Python v3.6.5, OpenSSL 1.1.0g 2 Nov 2017
Account sync Example:
*** Processing account Example
Establishing connection to mail.example.info:993 (VelRemote)
ERROR: While attempting to sync account 'Example'
IMAP4 protocol error: program error: <class 'TypeError'> - cannot use a bytes pattern on a string-like object
*** Finished account 'Example' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'Example'
IMAP4 protocol error: program error: <class 'TypeError'> - cannot use a bytes pattern on a string-like object
Traceback:
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/accounts.py", line 283, in syncrunner
self.__sync()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/accounts.py", line 359, in __sync
remoterepos.getfolders()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/repository/IMAP.py", line 452, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/imapserver.py", line 547, in acquireconnection
af=self.af,
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/imaplibutil.py", line 194, in __init__
super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 2183, in __init__
IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 400, in __init__
self.welcome = self._request_push(name='welcome', tag='continuation').get_response('IMAP4 protocol error: %s')[1]
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 201, in get_response
raise typ(exc_fmt % str(val))
debian python offlineimap
add a comment |
I'm setting up a new computer and installed offlineimap
with pip install --user offlineimap
but when I try to run it I'm getting a series of errors because offlineimap doesn't support Python3:
https://github.com/OfflineIMAP/offlineimap/issues/472
I do have 2.7 installed as well as 3:
amanda@host:~$ python --version
Python 2.7.15rc1
but even I'm not sure how to force offlineimap to use it.
Per https://stackoverflow.com/questions/10919569/install-a-module-using-pip-for-specific-python-version I uninstalled and tried to reinstall, specifying the python version, but that's choking in its own special way:
amanda@host:~$ python2.7 ~/.local/bin/pip install --user offlineimap
Traceback (most recent call last):
File "/home/amanda/.local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named pip._internal
The full OfflineIMAP error:
OfflineIMAP 7.2.1
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.57 (bundled), Python v3.6.5, OpenSSL 1.1.0g 2 Nov 2017
Account sync Example:
*** Processing account Example
Establishing connection to mail.example.info:993 (VelRemote)
ERROR: While attempting to sync account 'Example'
IMAP4 protocol error: program error: <class 'TypeError'> - cannot use a bytes pattern on a string-like object
*** Finished account 'Example' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'Example'
IMAP4 protocol error: program error: <class 'TypeError'> - cannot use a bytes pattern on a string-like object
Traceback:
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/accounts.py", line 283, in syncrunner
self.__sync()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/accounts.py", line 359, in __sync
remoterepos.getfolders()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/repository/IMAP.py", line 452, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/imapserver.py", line 547, in acquireconnection
af=self.af,
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/imaplibutil.py", line 194, in __init__
super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 2183, in __init__
IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 400, in __init__
self.welcome = self._request_push(name='welcome', tag='continuation').get_response('IMAP4 protocol error: %s')[1]
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 201, in get_response
raise typ(exc_fmt % str(val))
debian python offlineimap
Please addcat /home/amanda/.local/bin/pip
.
– GAD3R
Jul 10 '18 at 9:47
add a comment |
I'm setting up a new computer and installed offlineimap
with pip install --user offlineimap
but when I try to run it I'm getting a series of errors because offlineimap doesn't support Python3:
https://github.com/OfflineIMAP/offlineimap/issues/472
I do have 2.7 installed as well as 3:
amanda@host:~$ python --version
Python 2.7.15rc1
but even I'm not sure how to force offlineimap to use it.
Per https://stackoverflow.com/questions/10919569/install-a-module-using-pip-for-specific-python-version I uninstalled and tried to reinstall, specifying the python version, but that's choking in its own special way:
amanda@host:~$ python2.7 ~/.local/bin/pip install --user offlineimap
Traceback (most recent call last):
File "/home/amanda/.local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named pip._internal
The full OfflineIMAP error:
OfflineIMAP 7.2.1
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.57 (bundled), Python v3.6.5, OpenSSL 1.1.0g 2 Nov 2017
Account sync Example:
*** Processing account Example
Establishing connection to mail.example.info:993 (VelRemote)
ERROR: While attempting to sync account 'Example'
IMAP4 protocol error: program error: <class 'TypeError'> - cannot use a bytes pattern on a string-like object
*** Finished account 'Example' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'Example'
IMAP4 protocol error: program error: <class 'TypeError'> - cannot use a bytes pattern on a string-like object
Traceback:
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/accounts.py", line 283, in syncrunner
self.__sync()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/accounts.py", line 359, in __sync
remoterepos.getfolders()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/repository/IMAP.py", line 452, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/imapserver.py", line 547, in acquireconnection
af=self.af,
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/imaplibutil.py", line 194, in __init__
super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 2183, in __init__
IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 400, in __init__
self.welcome = self._request_push(name='welcome', tag='continuation').get_response('IMAP4 protocol error: %s')[1]
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 201, in get_response
raise typ(exc_fmt % str(val))
debian python offlineimap
I'm setting up a new computer and installed offlineimap
with pip install --user offlineimap
but when I try to run it I'm getting a series of errors because offlineimap doesn't support Python3:
https://github.com/OfflineIMAP/offlineimap/issues/472
I do have 2.7 installed as well as 3:
amanda@host:~$ python --version
Python 2.7.15rc1
but even I'm not sure how to force offlineimap to use it.
Per https://stackoverflow.com/questions/10919569/install-a-module-using-pip-for-specific-python-version I uninstalled and tried to reinstall, specifying the python version, but that's choking in its own special way:
amanda@host:~$ python2.7 ~/.local/bin/pip install --user offlineimap
Traceback (most recent call last):
File "/home/amanda/.local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named pip._internal
The full OfflineIMAP error:
OfflineIMAP 7.2.1
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.57 (bundled), Python v3.6.5, OpenSSL 1.1.0g 2 Nov 2017
Account sync Example:
*** Processing account Example
Establishing connection to mail.example.info:993 (VelRemote)
ERROR: While attempting to sync account 'Example'
IMAP4 protocol error: program error: <class 'TypeError'> - cannot use a bytes pattern on a string-like object
*** Finished account 'Example' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'Example'
IMAP4 protocol error: program error: <class 'TypeError'> - cannot use a bytes pattern on a string-like object
Traceback:
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/accounts.py", line 283, in syncrunner
self.__sync()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/accounts.py", line 359, in __sync
remoterepos.getfolders()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/repository/IMAP.py", line 452, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/imapserver.py", line 547, in acquireconnection
af=self.af,
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/imaplibutil.py", line 194, in __init__
super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 2183, in __init__
IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 400, in __init__
self.welcome = self._request_push(name='welcome', tag='continuation').get_response('IMAP4 protocol error: %s')[1]
File "/home/amanda/.local/lib/python3.6/site-packages/offlineimap/bundled_imaplib2.py", line 201, in get_response
raise typ(exc_fmt % str(val))
debian python offlineimap
debian python offlineimap
edited 36 mins ago
Rui F Ribeiro
41.8k1483142
41.8k1483142
asked Jul 9 '18 at 18:44
AmandaAmanda
430316
430316
Please addcat /home/amanda/.local/bin/pip
.
– GAD3R
Jul 10 '18 at 9:47
add a comment |
Please addcat /home/amanda/.local/bin/pip
.
– GAD3R
Jul 10 '18 at 9:47
Please add
cat /home/amanda/.local/bin/pip
.– GAD3R
Jul 10 '18 at 9:47
Please add
cat /home/amanda/.local/bin/pip
.– GAD3R
Jul 10 '18 at 9:47
add a comment |
2 Answers
2
active
oldest
votes
The installed Python 3 offlineimap is taking precedence over the installed Python 2.
For deleting the Python 3 version, do:
sudo rm -rf /home/amanda/.local/lib/python3.6/site-packages/offlineimap*
After this, hopefully it should now pickup the Python 2 version.
Known issue
As for your error using pip
, is a Debian/Ubuntu known issue.
sudo apt-get install python-pip
or
sudo easy_install pip
should fix it; as the OP also stated, after deleting the Python 3 offlinemap package, the Python 2 version was installed with apt
instead of pip
with:
sudo apt install offlineimap
1
I didn't want to screw up the rest of my Python just for this so I tried just installing withsudo apt install offlineimap
which worked fine. (I had already removed the offending Py3.6 package)
– Amanda
Jul 9 '18 at 19:32
@Amanda correcting youpip
wont screw up it. Eventually you will have to correct it, if it is not working correctly it will impact you in the short-medium term.
– Rui F Ribeiro
Jul 9 '18 at 23:48
Question: why would I userm
and notpip uninstall
? The latter actually captures a few more files.
– Amanda
Jul 10 '18 at 15:04
Ideally,pip
would install 2.7 packages, whilepip3
installs 3.6 packages. But pip isn't broken, it's just assuming I want to default to py3.
– Amanda
Jul 10 '18 at 15:06
@Amanda The default is python 2. It is "broken" in a sense some configuration change it´s behaviour, and many apps and instructions expect it to handle python 2, as you have found out.
– Rui F Ribeiro
Jul 11 '18 at 7:23
add a comment |
Clean up pip*
$ python3 -m pip uninstall pip
$ python -m pip uninstall pip
The ~/.local/bin/pip
should be removed.
Reinstall pip
locally:
$ curl -LO https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py --user
Install your package:
$ python2.7 ~/.local/bin/pip install --user offlineimap
This assumed I don't want my default to be python3, though, right?
– Amanda
Jul 10 '18 at 15:02
@Amanda Just it will reinstallpip
.
– GAD3R
Jul 10 '18 at 18:49
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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%2funix.stackexchange.com%2fquestions%2f454354%2fhow-do-i-force-offlineimap-to-use-python2-7%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
The installed Python 3 offlineimap is taking precedence over the installed Python 2.
For deleting the Python 3 version, do:
sudo rm -rf /home/amanda/.local/lib/python3.6/site-packages/offlineimap*
After this, hopefully it should now pickup the Python 2 version.
Known issue
As for your error using pip
, is a Debian/Ubuntu known issue.
sudo apt-get install python-pip
or
sudo easy_install pip
should fix it; as the OP also stated, after deleting the Python 3 offlinemap package, the Python 2 version was installed with apt
instead of pip
with:
sudo apt install offlineimap
1
I didn't want to screw up the rest of my Python just for this so I tried just installing withsudo apt install offlineimap
which worked fine. (I had already removed the offending Py3.6 package)
– Amanda
Jul 9 '18 at 19:32
@Amanda correcting youpip
wont screw up it. Eventually you will have to correct it, if it is not working correctly it will impact you in the short-medium term.
– Rui F Ribeiro
Jul 9 '18 at 23:48
Question: why would I userm
and notpip uninstall
? The latter actually captures a few more files.
– Amanda
Jul 10 '18 at 15:04
Ideally,pip
would install 2.7 packages, whilepip3
installs 3.6 packages. But pip isn't broken, it's just assuming I want to default to py3.
– Amanda
Jul 10 '18 at 15:06
@Amanda The default is python 2. It is "broken" in a sense some configuration change it´s behaviour, and many apps and instructions expect it to handle python 2, as you have found out.
– Rui F Ribeiro
Jul 11 '18 at 7:23
add a comment |
The installed Python 3 offlineimap is taking precedence over the installed Python 2.
For deleting the Python 3 version, do:
sudo rm -rf /home/amanda/.local/lib/python3.6/site-packages/offlineimap*
After this, hopefully it should now pickup the Python 2 version.
Known issue
As for your error using pip
, is a Debian/Ubuntu known issue.
sudo apt-get install python-pip
or
sudo easy_install pip
should fix it; as the OP also stated, after deleting the Python 3 offlinemap package, the Python 2 version was installed with apt
instead of pip
with:
sudo apt install offlineimap
1
I didn't want to screw up the rest of my Python just for this so I tried just installing withsudo apt install offlineimap
which worked fine. (I had already removed the offending Py3.6 package)
– Amanda
Jul 9 '18 at 19:32
@Amanda correcting youpip
wont screw up it. Eventually you will have to correct it, if it is not working correctly it will impact you in the short-medium term.
– Rui F Ribeiro
Jul 9 '18 at 23:48
Question: why would I userm
and notpip uninstall
? The latter actually captures a few more files.
– Amanda
Jul 10 '18 at 15:04
Ideally,pip
would install 2.7 packages, whilepip3
installs 3.6 packages. But pip isn't broken, it's just assuming I want to default to py3.
– Amanda
Jul 10 '18 at 15:06
@Amanda The default is python 2. It is "broken" in a sense some configuration change it´s behaviour, and many apps and instructions expect it to handle python 2, as you have found out.
– Rui F Ribeiro
Jul 11 '18 at 7:23
add a comment |
The installed Python 3 offlineimap is taking precedence over the installed Python 2.
For deleting the Python 3 version, do:
sudo rm -rf /home/amanda/.local/lib/python3.6/site-packages/offlineimap*
After this, hopefully it should now pickup the Python 2 version.
Known issue
As for your error using pip
, is a Debian/Ubuntu known issue.
sudo apt-get install python-pip
or
sudo easy_install pip
should fix it; as the OP also stated, after deleting the Python 3 offlinemap package, the Python 2 version was installed with apt
instead of pip
with:
sudo apt install offlineimap
The installed Python 3 offlineimap is taking precedence over the installed Python 2.
For deleting the Python 3 version, do:
sudo rm -rf /home/amanda/.local/lib/python3.6/site-packages/offlineimap*
After this, hopefully it should now pickup the Python 2 version.
Known issue
As for your error using pip
, is a Debian/Ubuntu known issue.
sudo apt-get install python-pip
or
sudo easy_install pip
should fix it; as the OP also stated, after deleting the Python 3 offlinemap package, the Python 2 version was installed with apt
instead of pip
with:
sudo apt install offlineimap
edited Jul 10 '18 at 3:03
slm♦
255k71538687
255k71538687
answered Jul 9 '18 at 18:47
Rui F RibeiroRui F Ribeiro
41.8k1483142
41.8k1483142
1
I didn't want to screw up the rest of my Python just for this so I tried just installing withsudo apt install offlineimap
which worked fine. (I had already removed the offending Py3.6 package)
– Amanda
Jul 9 '18 at 19:32
@Amanda correcting youpip
wont screw up it. Eventually you will have to correct it, if it is not working correctly it will impact you in the short-medium term.
– Rui F Ribeiro
Jul 9 '18 at 23:48
Question: why would I userm
and notpip uninstall
? The latter actually captures a few more files.
– Amanda
Jul 10 '18 at 15:04
Ideally,pip
would install 2.7 packages, whilepip3
installs 3.6 packages. But pip isn't broken, it's just assuming I want to default to py3.
– Amanda
Jul 10 '18 at 15:06
@Amanda The default is python 2. It is "broken" in a sense some configuration change it´s behaviour, and many apps and instructions expect it to handle python 2, as you have found out.
– Rui F Ribeiro
Jul 11 '18 at 7:23
add a comment |
1
I didn't want to screw up the rest of my Python just for this so I tried just installing withsudo apt install offlineimap
which worked fine. (I had already removed the offending Py3.6 package)
– Amanda
Jul 9 '18 at 19:32
@Amanda correcting youpip
wont screw up it. Eventually you will have to correct it, if it is not working correctly it will impact you in the short-medium term.
– Rui F Ribeiro
Jul 9 '18 at 23:48
Question: why would I userm
and notpip uninstall
? The latter actually captures a few more files.
– Amanda
Jul 10 '18 at 15:04
Ideally,pip
would install 2.7 packages, whilepip3
installs 3.6 packages. But pip isn't broken, it's just assuming I want to default to py3.
– Amanda
Jul 10 '18 at 15:06
@Amanda The default is python 2. It is "broken" in a sense some configuration change it´s behaviour, and many apps and instructions expect it to handle python 2, as you have found out.
– Rui F Ribeiro
Jul 11 '18 at 7:23
1
1
I didn't want to screw up the rest of my Python just for this so I tried just installing with
sudo apt install offlineimap
which worked fine. (I had already removed the offending Py3.6 package)– Amanda
Jul 9 '18 at 19:32
I didn't want to screw up the rest of my Python just for this so I tried just installing with
sudo apt install offlineimap
which worked fine. (I had already removed the offending Py3.6 package)– Amanda
Jul 9 '18 at 19:32
@Amanda correcting you
pip
wont screw up it. Eventually you will have to correct it, if it is not working correctly it will impact you in the short-medium term.– Rui F Ribeiro
Jul 9 '18 at 23:48
@Amanda correcting you
pip
wont screw up it. Eventually you will have to correct it, if it is not working correctly it will impact you in the short-medium term.– Rui F Ribeiro
Jul 9 '18 at 23:48
Question: why would I use
rm
and not pip uninstall
? The latter actually captures a few more files.– Amanda
Jul 10 '18 at 15:04
Question: why would I use
rm
and not pip uninstall
? The latter actually captures a few more files.– Amanda
Jul 10 '18 at 15:04
Ideally,
pip
would install 2.7 packages, while pip3
installs 3.6 packages. But pip isn't broken, it's just assuming I want to default to py3.– Amanda
Jul 10 '18 at 15:06
Ideally,
pip
would install 2.7 packages, while pip3
installs 3.6 packages. But pip isn't broken, it's just assuming I want to default to py3.– Amanda
Jul 10 '18 at 15:06
@Amanda The default is python 2. It is "broken" in a sense some configuration change it´s behaviour, and many apps and instructions expect it to handle python 2, as you have found out.
– Rui F Ribeiro
Jul 11 '18 at 7:23
@Amanda The default is python 2. It is "broken" in a sense some configuration change it´s behaviour, and many apps and instructions expect it to handle python 2, as you have found out.
– Rui F Ribeiro
Jul 11 '18 at 7:23
add a comment |
Clean up pip*
$ python3 -m pip uninstall pip
$ python -m pip uninstall pip
The ~/.local/bin/pip
should be removed.
Reinstall pip
locally:
$ curl -LO https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py --user
Install your package:
$ python2.7 ~/.local/bin/pip install --user offlineimap
This assumed I don't want my default to be python3, though, right?
– Amanda
Jul 10 '18 at 15:02
@Amanda Just it will reinstallpip
.
– GAD3R
Jul 10 '18 at 18:49
add a comment |
Clean up pip*
$ python3 -m pip uninstall pip
$ python -m pip uninstall pip
The ~/.local/bin/pip
should be removed.
Reinstall pip
locally:
$ curl -LO https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py --user
Install your package:
$ python2.7 ~/.local/bin/pip install --user offlineimap
This assumed I don't want my default to be python3, though, right?
– Amanda
Jul 10 '18 at 15:02
@Amanda Just it will reinstallpip
.
– GAD3R
Jul 10 '18 at 18:49
add a comment |
Clean up pip*
$ python3 -m pip uninstall pip
$ python -m pip uninstall pip
The ~/.local/bin/pip
should be removed.
Reinstall pip
locally:
$ curl -LO https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py --user
Install your package:
$ python2.7 ~/.local/bin/pip install --user offlineimap
Clean up pip*
$ python3 -m pip uninstall pip
$ python -m pip uninstall pip
The ~/.local/bin/pip
should be removed.
Reinstall pip
locally:
$ curl -LO https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py --user
Install your package:
$ python2.7 ~/.local/bin/pip install --user offlineimap
answered Jul 10 '18 at 11:03
GAD3RGAD3R
27.5k1858114
27.5k1858114
This assumed I don't want my default to be python3, though, right?
– Amanda
Jul 10 '18 at 15:02
@Amanda Just it will reinstallpip
.
– GAD3R
Jul 10 '18 at 18:49
add a comment |
This assumed I don't want my default to be python3, though, right?
– Amanda
Jul 10 '18 at 15:02
@Amanda Just it will reinstallpip
.
– GAD3R
Jul 10 '18 at 18:49
This assumed I don't want my default to be python3, though, right?
– Amanda
Jul 10 '18 at 15:02
This assumed I don't want my default to be python3, though, right?
– Amanda
Jul 10 '18 at 15:02
@Amanda Just it will reinstall
pip
.– GAD3R
Jul 10 '18 at 18:49
@Amanda Just it will reinstall
pip
.– GAD3R
Jul 10 '18 at 18:49
add a comment |
Thanks for contributing an answer to Unix & Linux 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%2funix.stackexchange.com%2fquestions%2f454354%2fhow-do-i-force-offlineimap-to-use-python2-7%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
Please add
cat /home/amanda/.local/bin/pip
.– GAD3R
Jul 10 '18 at 9:47