as title says, I type
qiskit.__qiskit_version__
and get the error AttributeError: module 'qiskit' has no attribute 'qiskit_version'.
I have Anaconda installed as well as pip installed qiskit and qiskit[visualization]. The jupyter notebook only works within my python file and not sure what else to do?
The issue was python was installed in 2 different locations. Had to delete both then reinstall!
Related
When I am trying to import matlibplot or sns or plotly packages below is the error
AttributeError: module 'matplotlib.dates' has no attribute '_rcParam_helper'.
I have tried to install older versions but no luck.
I suspect that this is an installation issue where you have more than one version of Matplotlib installed at the same time so some files are from one version and some are from another (a chimera).
I suggest uninstalling everything and starting again clean with exactly one package management tool (pip vs conda vs system vs ...).
In https://github.com/matplotlib/matplotlib/commit/814a969d4a731321827a108c38ed6f3aaf50a623 (which looks like it went in between 3.4.2 and 3.5.0) we re-named an internal class. I suspect you have a new version of dates.py and an old version of rcsetup.py.
Hi i'm recently working on a module in python (package named pykiwoom)
I installed a module in conda 32-bit environment pip install pykiwoom and tried to import this
from pykiwoom.kiwoom import Kiwoom
This works perfectly fine when I execute this in python console in pycharm
However, when I try this in terminal error occurs
ModuleNotFoundError: No module named 'pykiwoom.kiwoom'; 'pykiwoom' is not a package
internal structure of package pykiwoom looks like this
pykiwoom
init.py
kiwoom.py
parser.py
Can somebody tell me why this error occurs?
I think where you install your package is important in your case. You can check the packages installed using pip list in terminal, and check if you find it there.
This solution provides overview of how to setup your files as packages and modules.
Nevertheless, I think if you install your package in the terminal using pip, you could possibly access it.
Hello I´m trying to run a python manage.py runserver command but getting this error message
File "C:\Users\adrie\Anaconda3\lib\sre_compile.py", line 17, in
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch
Does anyone have idea of what´s happening here?
I had anaconda installed previously and was running fine. But then I´ve deinstalled and reinstalled anaconda, and I´m getting this error now.
Make sure you do not have any mismatch between Python interpreter version used (like 3.7) and the 're' python module (like 3.6.1).
You need reinstall IDLE or anaconda
My PYTHONHOME and PYTHONPATH environment variables were pointing to the wrong version. By fixing this import sre_compile was fixed.
Make sure your installed python version matches exactly the version anaconda uses. If not get another python version.
On Windows you can see the anaconda python version in control center -> uninstall programm -> Name of Anaconda.
Also make sure there are no older python version installed (that still might have environmental variables that point to them).
You can switch your Python version of Anaconda. There should be no need to uninstall Anaconda.
Check for available Python versions:
conda search python
Choose your preferred Python version:
conda install python=3.7.5
I'm trying a Django tutorial. For some reason my existing superuser got deleted; creating that went fine, but I can't make another one. This also happens when I try to use pip.
I didn't change anything in the libraries so not sure why this happens now but didn't before. On windows 7 (Python 3.6.3 and Django 1.11). I've seen similar but not the exact same problems for Windows. Still I checked the file and there seems to be a PathLike class.
I've also tried to repair my Python installation but it didn't help. any ideas?
Seems like you may have modified the settings.py file. But as MrName mentioned you need to share full stack trace
This looks like a feature that changed in Python3.6 as you can see here. Make sure that your python version is 3.6 or greater.
Update your Python and Django version and that will work perfect.
AttributeError: module 'os' has no attribute 'PathLike'
Installing it into the global site-packages with the below command solved my problem:
pip install --user virtualenvwrapper
I have got a strange issue.
I am now using graphlab/numpy to develop a project via Pycharm 5. OS is Mac OS 10.11.5. I created a p2.7 virtual environment for the project. Programme runs well. But after I install ipython, I can no longer import graphlab and numpy correctly.
Error message:
AttributeError: 'module' object has no attribute 'core'
System keeps telling that attribute ‘core' and 'connect' are missing. But I am pretty sure that they can be found in graphlab/numpy folders, and no duplicates.
Project runs all right in terminal. Now I have to uninstall ipython. Then everything is ok again.
Please kindly help.
Please remember that console applications and GUI application do not share the same environment on OS X.
This also means that if you install a Python package from the console, this would probably not be visible to PyCharm.
Usually you need to install packages using PyCharm in order to be able to use them.
Upgrading pip itself then reinstalling worked for me