ImportError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work
The following commands solved the problem for me pip install pydot pip install pydotplus sudo apt-get install graphviz
The following commands solved the problem for me pip install pydot pip install pydotplus sudo apt-get install graphviz
I have managed to resolve the problem by reinstalling Python. First, I have uninstalled Python (like any other program in Windows). Then I have installed Anaconda distribution of Python. The problem is not present anymore.
Your sudo is not getting the right python. This is a known behaviour of sudo in Ubuntu. See this question for more info. You need to make sure that sudo calls the right python, either by using the full path: or by doing the following (in bash):
Just run apt-get install python3-flask Edited to install the python3 version, since nobody should be using python2 now.
You probably don’t have the six Python module installed. You can find it on pypi. To install it: (if you have pip installed, use pip install six instead)
Description The problem was caused by mixing objects that compiled with libc++ and object that compiled with libstdc++. In our case, the library myMod.so (compiled with libstdc++) need boost-python that compiled with libstdc++ (boost-python-libstdc++ from now). When boost-python is boost-python-libstdc++, it will work fine. Otherwise – on computer that its boost-python has compiled with libc++ … Read more
in your PyCharm project: press Ctrl+Alt+s to open the settings on the left column, select Project Interpreter on the top right there is a list of python binaries found on your system, pick the right one eventually click the + button to install additional python modules validate
Yes. You’re not using it as a package.
Activate the virtualenv, and then install BeautifulSoup4: When you installed bs4 with easy_install, you installed it system-wide. So your system python can import it, but not your virtualenv python. If you do not need bs4 to be installed in your system python path, uninstall it and keep it in your virtualenv. For more information about virtualenvs, read this