I'm facing the following error while trying to import the matplotlib(Windows10 OS). I have tried uninstalling and reinstalling the package. Nothing seems to be working. Can somebody help me
enter image description here
According to the thread here:
https://github.com/facebook/prophet/issues/1691
You might need to downgrade to the 3.1.3 version of mathplotlib for it to work.
Related
I am trying to import Pennylane in jupyter notebook. I installed it using Ubuntu.
import pennylane as cents
However, it is spewing out this:
ImportError: cannot import name 'shape'
I found two reasons online. One is that python needs to be at version less than 3.7[https://github.com/PennyLaneAI/pennylane/issues/1922]. To solve this I used pip install -U jupyter. Another reason is that Pennylane might be at a version earlier enough that it had a bug[https://discuss.pennylane.ai/t/importerror-cannot-import-name-shape/1383]. I installed Pennylane to the latest version I could find, 0.25. I did pip install pennylane==0.25 But it still does not work
Could someone please explain this to me?
i am trying to create an executable using cx_freeze. and when i run
python setup.py build i get the following error:
from setuptools.errors import OptionError
ImportError: cannot import name 'OptionError' from 'setuptools.errors'
I am working in anaconda. I tried reverting to a previous cx_freeze version with no luck.
This a a new problem two month ago when i created another virtual envieonment i didn't have this problem. This is why i'm guessing it could be maybe a version issue. However i can't seem to find the correct version to install.
i also checked other related issues however i didn't find a solution that works for me. If you have an idea please let me know!
Thank you
It's difficult to tell without additional info, package versions, a more complete trace, etc.
I ran into this same error during a build post-upgrade of cx_Freeze but after already having setuptools installed. Reinstalling setuptools to the most current version (65.6.3) corrected the error in my case. I'm running cx_Freeze version 6.13.1 if it helps move you past the error.
Typically, Python errors of the sort ImportError: cannot import name ... indicate circular dependencies, e.g.,: https://stackoverflow.com/a/9252628/9975319 - it could be that the order of imports cx_Freeze does changes across builds causing the dependencies to import incorrectly but I haven't dug deeper into it.
I am new to python, am attempting to work with some existing code, but am getting errors due to a missing module. I am using python version 2.7, pandas version 0.18.1, all inside VSCode.
problem code is:
import pandas.io.formats.excel
Error:
Exception has occurred: ImportError No module named formats.excel
I have tried using pandas.formats.excel but then the 'excel' part is missing. i've also tried uninstalling and reinstalling pandas
Thanks for any help.
Your python version can't support the module. I ran your code in python 3.8.3 and it went well, but the same problem occured when I ran it in python 2.7. Please download the latest python version in the offical website. https://www.python.org/
Click lower left to change the interpreter.
I am having trouble when using Pushbullet in my VS-Code project, it's having a problem with importing pushbullet. I am using Python 3.8.2 on Windows 10, Python 2.7 is also installed, there are two types of error and I have no clue at all
But when I try it manually in python 3.8.2 IDE, it works perfectly. Can someone help me to fix this issue
I have looked through some of the similar post, saying this is the PATH problem and try to uninstall numpy , I also couldn't uninstall numpy because of having no permission problem.
Summarizing the problem :
By trying to do "from scapy.all import *" I got the following error :
Hi,
I'm trying to do project with scapy, but unfortuently I had a porblem so I decided to delete my python and pycharm and install everything again. This didn't work too and after installing him with pip and trying to run, I got the error above...
someone know what to do? I'm desperate :(
This bug was fixed in January: https://github.com/secdev/scapy/issues/1819
You should try using the github dev version. Here's the doc on how to use it: https://scapy.readthedocs.io/en/latest/installation.html#current-development-version