It's linux, using conda to install pysam, and pip install pysam keep failing.
After successful installed pysam,
pysam shows in conda list and appears in anaconda2/pkgs/
but when import pysam in python 2.7.12, it failed by Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pysam
PLS help.
Related
I'm trying to use the nba_api module.
I always install my packages on my Mac using the 'pip3 install' command.
Today I installed successfully the nba_api module but I can't use it due to the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'nba_api'
Also, I installed it using the 'pip install' command but I have the same problem.
The interpreter I use is Python 3.9.7.
Any help will be welcomed.
I tried to build HandTracker target in xcode and got this errors.
error: An error occurred during the fetch of repository 'local_execution_config_python':
Traceback (most recent call last):
File "/private/var/tmp/_bazel_air/295474371363cb7bb712bb69027e5852/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 39, in _create_local_python_repository
numpy_include = _get_numpy_include(repository_ctx, python_bin) + "/numpy"
File "/private/var/tmp/_bazel_air/295474371363cb7bb712bb69027e5852/external/org_tensorflow/third_party/py/python_configure.bzl", line 187, column 19, in _get_numpy_include
return execute(
File "/private/var/tmp/_bazel_air/295474371363cb7bb712bb69027e5852/external/org_tensorflow/third_party/remote_config/common.bzl", line 217, column 13, in execute
fail(
Error in fail: Problem getting numpy include path.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
Is numpy installed?
error: Analysis of aspect '#tulsi//:tulsi/tulsi_aspects.bzl%tulsi_outputs_aspect of //mediapipe/examples/ios/handtrackinggpu:HandTrackingGpuApp' failed; build aborted: Problem getting numpy include path.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
Is numpy installed?
note: Elapsed time: 12,284s
note: 0 processes.
error: Build did NOT complete successfully (4 packages loaded, 7 targets configured)
<*> Running Bazel completed in 12509.306 ms
/Users/air/Documents/Mediapipe.xcodeproj/.tulsi/Scripts/bazel_build.py:569: error: Bazel build failed with exit code 1. Please check the build log in Report Navigator (⌘9) for more information.
It says here that I do not have numpy, but I installed it by pip install numpy.
pip list output:
Package Version
------------- --------
absl-py 0.11.0
dataclasses 0.6
numpy 1.19.3
opencv-python 4.4.0.46
pip 20.3.3
protobuf 3.14.0
setuptools 47.1.0
six 1.15.0
wheel 0.36.2
At first, the project was normally builded, but then I don't remember what I did and these errors began. Python 3.8.5, macOS 11.1, bazel 3.7.2
One of the goal of Bazel is to make build reproducibles, so it cannot depend on machine-specific libraries.
You need to define the dependency with pip_import.
I had similar problem when I built bazel using sudo! when I removed sudo every thing worked fine.
I am on Ubuntu 16.04 and have just installed installed python 3.6. via apt.
When importing tkinter, I get the oft-seen error
ImportError: No module named '_tkinter', please install the python3-tk package
Trouble is, the python3-tk package is installed.
$> python3.5 -c "import tkinter"
[no output]
$> python3.6 -c "import tkinter"
Traceback (most recent call last):
File "/usr/lib/python3.6/tkinter/__init__.py", line 37, in <module>
import _tkinter
ModuleNotFoundError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 39, in <module>
raise ImportError(str(msg) + ', please install the python3-tk package')
ImportError: No module named '_tkinter', please install the python3-tk package
How can I fix this?
I solved this problem by restoring /usr/lib/python3.6 from backup. I've now seen it several times that when stuff goes missing from there, the package manager cannot reinstall it, despite claiming to do so.
I tried many things but I could not install dbus package for python3.
I believe this command install the dbus for python3:
sudo apt-get install python3-dbus-dbg
However I still get this error:
>>> import dbus
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'dbus'
I have different python versions installed on my ubuntu machine. The default version is 2.7.
I'm trying to install nfqueue module for version 3.4:
#apt-get install libnetfilter-queue-dev
#pip3 install NetfilterQueue
When I try to test if it is correctly installed I get this error:
>>>import netfilterqueue
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python3.4/dist-packages/netfilterqueue.cpython-34m.so:undefined symbol: PyString_FromStringAndSize
Has any one an idea what would be the problem??
Thanks!
The function PyString_FromStringAndSize doesn't exist in python 3.x... you need to make sure you're installing the correct nfqueue module