matplotlib error : MatplotlibDeprecationWarning
from matplotlib import pyplot as plt
/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/colors.py:680:
MatplotlibDeprecationWarning: The is_string_like function was deprecated in version 2.1.
not cbook.is_string_like(colors[0]):
Now it's showing this error.
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
pip python-2.7 matplotlib
add a comment |
from matplotlib import pyplot as plt
/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/colors.py:680:
MatplotlibDeprecationWarning: The is_string_like function was deprecated in version 2.1.
not cbook.is_string_like(colors[0]):
Now it's showing this error.
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
pip python-2.7 matplotlib
2
So, update your matplotilb version? It's in your local library -pip3 install --upgrade --user matplotlib
should fix that.
– Thomas Ward♦
Jun 15 '18 at 20:46
now its showing this error. from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in <module> from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:11
add a comment |
from matplotlib import pyplot as plt
/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/colors.py:680:
MatplotlibDeprecationWarning: The is_string_like function was deprecated in version 2.1.
not cbook.is_string_like(colors[0]):
Now it's showing this error.
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
pip python-2.7 matplotlib
from matplotlib import pyplot as plt
/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/colors.py:680:
MatplotlibDeprecationWarning: The is_string_like function was deprecated in version 2.1.
not cbook.is_string_like(colors[0]):
Now it's showing this error.
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
pip python-2.7 matplotlib
pip python-2.7 matplotlib
edited Jun 17 '18 at 5:14
karel
57.8k12128146
57.8k12128146
asked Jun 15 '18 at 15:03
r kr k
62
62
2
So, update your matplotilb version? It's in your local library -pip3 install --upgrade --user matplotlib
should fix that.
– Thomas Ward♦
Jun 15 '18 at 20:46
now its showing this error. from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in <module> from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:11
add a comment |
2
So, update your matplotilb version? It's in your local library -pip3 install --upgrade --user matplotlib
should fix that.
– Thomas Ward♦
Jun 15 '18 at 20:46
now its showing this error. from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in <module> from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:11
2
2
So, update your matplotilb version? It's in your local library -
pip3 install --upgrade --user matplotlib
should fix that.– Thomas Ward♦
Jun 15 '18 at 20:46
So, update your matplotilb version? It's in your local library -
pip3 install --upgrade --user matplotlib
should fix that.– Thomas Ward♦
Jun 15 '18 at 20:46
now its showing this error. from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in <module> from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:11
now its showing this error. from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in <module> from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:11
add a comment |
1 Answer
1
active
oldest
votes
You have a MatplotlibDeprecationWarning when using the version of Matplotlib that was installed by pip. Install Matplotlib from the default Ubuntu repositories instead. Open the terminal and type:
sudo apt install python2.7 python-matplotlib
sudo rm -r /usr/lib/python2.7/site-packages/matplotlib/
Run the following commands in python:
matplotlib.get_configdir()
matplotlib.get_cachedir()
Remove the matplotlib packages in the output paths of these commands. If there aren't any matplotlib packages in the output paths of these commands continue on to the next step.
Remove the matplotlib files in the .local folder.
mv /home/rishabh/.local/lib/python2.7/matplotlib* /home/rishabh/tmp
Type python
to start the Python interpreter and then after the prompt type:
from matplotlib import pyplot as plt
You might also like to try running the plots inline in Spyder Python IDE.
sudo apt install python2.7 ipython python-matplotlib spyder
After the ipython prompt in the IPython console copy/paste the below code and press the Enter key to run it.
import matplotlib.pyplot as plt
x, y = [-1, 12], [1, 4]
plt.plot(x, y, marker = 'o')
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 127, in <module> from matplotlib.rcsetup import defaultParams, validate_backend, cycler File "/usr/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in <module> from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/usr/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 32 from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:08
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1046898%2fmatplotlib-error-matplotlibdeprecationwarning%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have a MatplotlibDeprecationWarning when using the version of Matplotlib that was installed by pip. Install Matplotlib from the default Ubuntu repositories instead. Open the terminal and type:
sudo apt install python2.7 python-matplotlib
sudo rm -r /usr/lib/python2.7/site-packages/matplotlib/
Run the following commands in python:
matplotlib.get_configdir()
matplotlib.get_cachedir()
Remove the matplotlib packages in the output paths of these commands. If there aren't any matplotlib packages in the output paths of these commands continue on to the next step.
Remove the matplotlib files in the .local folder.
mv /home/rishabh/.local/lib/python2.7/matplotlib* /home/rishabh/tmp
Type python
to start the Python interpreter and then after the prompt type:
from matplotlib import pyplot as plt
You might also like to try running the plots inline in Spyder Python IDE.
sudo apt install python2.7 ipython python-matplotlib spyder
After the ipython prompt in the IPython console copy/paste the below code and press the Enter key to run it.
import matplotlib.pyplot as plt
x, y = [-1, 12], [1, 4]
plt.plot(x, y, marker = 'o')
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 127, in <module> from matplotlib.rcsetup import defaultParams, validate_backend, cycler File "/usr/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in <module> from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/usr/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 32 from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:08
add a comment |
You have a MatplotlibDeprecationWarning when using the version of Matplotlib that was installed by pip. Install Matplotlib from the default Ubuntu repositories instead. Open the terminal and type:
sudo apt install python2.7 python-matplotlib
sudo rm -r /usr/lib/python2.7/site-packages/matplotlib/
Run the following commands in python:
matplotlib.get_configdir()
matplotlib.get_cachedir()
Remove the matplotlib packages in the output paths of these commands. If there aren't any matplotlib packages in the output paths of these commands continue on to the next step.
Remove the matplotlib files in the .local folder.
mv /home/rishabh/.local/lib/python2.7/matplotlib* /home/rishabh/tmp
Type python
to start the Python interpreter and then after the prompt type:
from matplotlib import pyplot as plt
You might also like to try running the plots inline in Spyder Python IDE.
sudo apt install python2.7 ipython python-matplotlib spyder
After the ipython prompt in the IPython console copy/paste the below code and press the Enter key to run it.
import matplotlib.pyplot as plt
x, y = [-1, 12], [1, 4]
plt.plot(x, y, marker = 'o')
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 127, in <module> from matplotlib.rcsetup import defaultParams, validate_backend, cycler File "/usr/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in <module> from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/usr/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 32 from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:08
add a comment |
You have a MatplotlibDeprecationWarning when using the version of Matplotlib that was installed by pip. Install Matplotlib from the default Ubuntu repositories instead. Open the terminal and type:
sudo apt install python2.7 python-matplotlib
sudo rm -r /usr/lib/python2.7/site-packages/matplotlib/
Run the following commands in python:
matplotlib.get_configdir()
matplotlib.get_cachedir()
Remove the matplotlib packages in the output paths of these commands. If there aren't any matplotlib packages in the output paths of these commands continue on to the next step.
Remove the matplotlib files in the .local folder.
mv /home/rishabh/.local/lib/python2.7/matplotlib* /home/rishabh/tmp
Type python
to start the Python interpreter and then after the prompt type:
from matplotlib import pyplot as plt
You might also like to try running the plots inline in Spyder Python IDE.
sudo apt install python2.7 ipython python-matplotlib spyder
After the ipython prompt in the IPython console copy/paste the below code and press the Enter key to run it.
import matplotlib.pyplot as plt
x, y = [-1, 12], [1, 4]
plt.plot(x, y, marker = 'o')
You have a MatplotlibDeprecationWarning when using the version of Matplotlib that was installed by pip. Install Matplotlib from the default Ubuntu repositories instead. Open the terminal and type:
sudo apt install python2.7 python-matplotlib
sudo rm -r /usr/lib/python2.7/site-packages/matplotlib/
Run the following commands in python:
matplotlib.get_configdir()
matplotlib.get_cachedir()
Remove the matplotlib packages in the output paths of these commands. If there aren't any matplotlib packages in the output paths of these commands continue on to the next step.
Remove the matplotlib files in the .local folder.
mv /home/rishabh/.local/lib/python2.7/matplotlib* /home/rishabh/tmp
Type python
to start the Python interpreter and then after the prompt type:
from matplotlib import pyplot as plt
You might also like to try running the plots inline in Spyder Python IDE.
sudo apt install python2.7 ipython python-matplotlib spyder
After the ipython prompt in the IPython console copy/paste the below code and press the Enter key to run it.
import matplotlib.pyplot as plt
x, y = [-1, 12], [1, 4]
plt.plot(x, y, marker = 'o')
edited Jan 10 at 16:39
answered Jun 15 '18 at 16:21
karelkarel
57.8k12128146
57.8k12128146
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 127, in <module> from matplotlib.rcsetup import defaultParams, validate_backend, cycler File "/usr/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in <module> from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/usr/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 32 from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:08
add a comment |
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 127, in <module> from matplotlib.rcsetup import defaultParams, validate_backend, cycler File "/usr/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in <module> from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/usr/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 32 from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:08
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 127, in <module> from matplotlib.rcsetup import defaultParams, validate_backend, cycler File "/usr/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in <module> from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/usr/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 32 from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:08
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 127, in <module> from matplotlib.rcsetup import defaultParams, validate_backend, cycler File "/usr/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in <module> from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/usr/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 32 from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:08
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1046898%2fmatplotlib-error-matplotlibdeprecationwarning%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
2
So, update your matplotilb version? It's in your local library -
pip3 install --upgrade --user matplotlib
should fix that.– Thomas Ward♦
Jun 15 '18 at 20:46
now its showing this error. from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in <module> from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache
– r k
Jun 16 '18 at 18:11