I am using pip install tensorflow to install in environment. Package is downloaded but not installed. When I use tensorflow, it shows no module name tensoflow.
Tensorflow is downloaded but not installed.
Edit
When running import tensorflow:
(bot_venv):~/Chatbot/ChatBot/chatbot$ python
-c "import tensorflow" Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named
'tensorflow'
Edit 2
Running pip list (it's a big list and tensorflow is not in it). When I used requirements.txt to insatll packages, it showed packages are dowloading but nothing installed. I used pip install p_name one by one for all packages. Worked for all except tensorflow.
absl-py 0.9.0
aioredis 1.3.1
amqp 2.6.1
asgiref 3.2.7
astor 0.8.1
async-timeout 3.0.1
attrs 19.3.0
autobahn 20.4.3
Automat 20.2.0
billiard 3.5.0.5
cachetools 4.0.0
certifi 2019.11.28
cffi 1.14.0
channels 2.4.0
channels-redis 2.4.1
chardet 3.0.4
colorama 0.4.3
configparser 4.0.2
constantly 15.1.0
contextvars 2.4
crayons 0.3.0
cryptography 2.9.2
daphne 2.5.0
Django 2.2.4
django-paypal 1.0.0
djangorestframework 3.11.0
gast 0.2.2
google-auth 1.11.0
google-auth-oauthlib 0.4.1
google-pasta 0.1.8
googletrans 3.0.0
grpcio 1.26.0
h11 0.9.0
h2 3.2.0
h5py 2.10.0
hiredis 1.0.1
hpack 3.0.0
hstspreload 2020.6.16
httpcore 0.9.1
httpx 0.13.3
hyperframe 5.2.0
hyperlink 19.0.0
idna 2.8
immutables 0.14
importlib-metadata 1.7.0
incremental 17.5.0
jsonfield 2.0.2
Keras 2.4.3
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.0
kombu 4.6.11
Markdown 3.1.1
msgpack 0.6.2
mysqlclient 1.4.6
nltk 3.4.5
numpy 1.18.1
oauthlib 3.1.0
opt-einsum 3.1.0
Pillow 7.1.2
pip 20.2.3
pkg-resources 0.0.0
protobuf 3.11.2
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycparser 2.20
PyHamcrest 2.0.2
pyOpenSSL 19.1.0
pytz 2020.1
PyYAML 5.3
redis 3.3.11
requests 2.22.0
requests-oauthlib 1.3.0
rfc3986 1.4.0
rsa 4.0
scipy 1.4.1
selenium 3.141.0
service-identity 18.1.0
setuptools 50.3.0
six 1.14.0
sniffio 1.1.0
sqlparse 0.3.1
tensorboard 2.1.0
tensorflow-estimator 2.1.0
termcolor 1.1.0
Twisted 20.3.0
txaio 20.4.1
urllib3 1.25.7
vine 1.3.0
webdriver-manager 2.3.0
Werkzeug 0.16.0
wheel 0.35.1
wrapt 1.11.2
zipp 3.1.0
zope.interface 5.1.0
Related
This one line python program fails with the error message above on windows 10 with python 310:
from keras.models import Sequential
Preceding the keras's with 'tensorflow.' does not help.
Edit 1: Seems like none of my pthon files that us tensorflow are now failing with this error. I must have installed something that is incompatible. How does one find out what the problem is?
Edit 2: Any import of tensorflow or keras gets a stack trace (please see below). They all seem to get intp module_util and end up in _make_function_type.
Traceback (most recent call last):
File "D:\ray\eclisepython\2py\src\p\t.py", line 3, in <module>
import tensorflow as tf
File "C:\Users\raz\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow\__init__.py", line 37, in <module>
from tensorflow.python.tools import module_util as _module_util
...
File "C:\Users\raz\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow\python\eager\polymorphic_function\function_spec.py", line 272, in _make_function_type
type_constraint = trace_type.from_value(
AttributeError: module 'tensorflow.core.function.trace_type' has no attribute 'from_value'
Package Version
---------------------------- -----------
absl-py 1.3.0
altgraph 0.17.2
anyio 3.6.1
appdirs 1.4.4
argon2-cffi 21.3.0
argon2-cffi-bindings 21.2.0
arrow 1.2.3
asgiref 3.5.2
asttokens 2.2.1
astunparse 1.6.3
attrs 22.2.0
backcall 0.2.0
beautifulsoup4 4.11.1
bleach 5.0.1
blosc2 2.0.0
cachetools 5.2.1
certifi 2022.9.24
cffi 1.15.1
charset-normalizer 2.1.1
click 8.1.3
colorama 0.4.5
comm 0.1.2
contextvars 2.4
contourpy 1.0.6
cryptography 39.0.0
cycler 0.11.0
Cython 0.29.33
dash 2.7.1
dash-core-components 2.0.0
dash-html-components 2.0.0
dash-table 5.0.0
debugpy 1.6.5
decorator 5.1.1
defusedxml 0.7.1
entrypoints 0.4
et-xmlfile 1.1.0
executing 1.2.0
fastjsonschema 2.16.2
finta 1.3
Flask 2.2.2
flatbuffers 23.1.4
fonttools 4.38.0
fqdn 1.5.1
frozendict 2.3.4
future 0.18.2
gast 0.4.0
google-auth 2.16.0
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
grpcio 1.51.1
h11 0.13.0
h5py 3.7.0
html5lib 1.1
htmltools 0.1.2
idna 3.3
immutables 0.18
ipykernel 6.20.1
ipython 8.8.0
ipython-genutils 0.2.0
ipywidgets 8.0.4
isoduration 20.11.0
itsdangerous 2.1.2
jedi 0.18.2
Jinja2 3.1.2
joblib 1.2.0
jsonpointer 2.3
jsonschema 4.17.3
jupyter 1.0.0
jupyter_client 7.4.8
jupyter-console 6.4.4
jupyter_core 5.1.3
jupyter-events 0.6.2
jupyter_server 2.0.6
jupyter_server_terminals 0.4.4
jupyterlab-pygments 0.2.2
jupyterlab-widgets 3.0.5
keras 2.10.0
Keras-Preprocessing 1.1.2
kiwisolver 1.4.4
libclang 15.0.6.1
linkify-it-py 2.0.0
lxml 4.9.2
Markdown 3.4.1
markdown-it-py 2.1.0
MarkupSafe 2.1.1
matplotlib 3.6.2
matplotlib-inline 0.1.6
mdurl 0.1.1
mistune 2.0.4
msgpack 1.0.4
multitasking 0.0.11
nbclassic 0.4.8
nbclient 0.7.2
nbconvert 7.2.7
nbformat 5.7.2
nest-asyncio 1.5.6
notebook 6.5.2
notebook_shim 0.2.2
numexpr 2.8.4
numpy 1.24.2
oauthlib 3.2.2
openpyxl 3.1.0
opt-einsum 3.3.0
packaging 21.3
pandas 1.5.3
pandas-datareader 0.10.0
pandocfilters 1.5.0
parso 0.8.3
patsy 0.5.3
pefile 2022.5.30
pickleshare 0.7.5
Pillow 9.4.0
pip 23.0
platformdirs 2.6.2
plotly 5.11.0
prometheus-client 0.15.0
prompt-toolkit 3.0.36
protobuf 3.19.6
psutil 5.9.3
pure-eval 0.2.2
py-cpuinfo 9.0.0
py4j 0.10.9.5
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycparser 2.21
Pygments 2.14.0
pyinstaller 5.3
pyinstaller-hooks-contrib 2022.8
pyparsing 3.0.9
pyrsistent 0.19.3
pyspark 3.3.1
python-dateutil 2.8.2
python-json-logger 2.0.4
python-multipart 0.0.5
pytz 2022.7
pywin32 305
pywin32-ctypes 0.2.0
pywinpty 2.0.10
PyYAML 6.0
pyzmq 24.0.1
qtconsole 5.4.0
QtPy 2.3.0
requests 2.28.1
requests-oauthlib 1.3.1
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rsa 4.9
scikit-learn 1.2.0
scipy 1.10.0
seaborn 0.12.2
Send2Trash 1.8.0
setuptools 63.2.0
shiny 0.2.4
simplejson 3.18.1
six 1.16.0
sniffio 1.2.0
soupsieve 2.3.2.post1
stack-data 0.6.2
starlette 0.20.4
statsmodels 0.13.5
tables 3.8.0
tenacity 8.1.0
tensorboard 2.10.1
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorflow 2.11.0
tensorflow-estimator 2.10.0
tensorflow-intel 2.11.0
tensorflow-io-gcs-filesystem 0.29.0
termcolor 2.2.0
terminado 0.17.1
Theano 1.0.5
threadpoolctl 3.1.0
tinycss2 1.2.1
tornado 6.2
traitlets 5.8.1
typing_extensions 4.3.0
uc-micro-py 1.0.1
uri-template 1.2.0
urllib3 1.26.12
uvicorn 0.18.2
watchdog 2.1.9
wcwidth 0.2.5
webcolors 1.12
webencodings 0.5.1
websocket-client 1.4.2
websockets 10.3
Werkzeug 2.2.2
wheel 0.38.4
widgetsnbextension 4.0.5
wrapt 1.14.1
xgboost 1.7.3
yahoo-finance 1.4.0
yfinance 0.2.3
Try setting your script up like it's described in the keras docs
edit: Alright, my next recommendation would be to create a new virtual environment and try installing your packages there and run your one line import and see if it works. It seems like there could be some issues with your current installed packages. Open up command prompt:
mkdir venvFolder
cd venvFolder
python3 -m venv testVenv
cd testVenv\Scripts
activate
You should now see (testVenv) in front of your prompt. Now:
(testVenv) C:\> pip3 install tensorflow
(testVenv) C:\> pip3 install keras
(testVenv) C:\> python3
Now that you have python open:
>>> from keras.models import Sequential
>>> exit()
If the above runs without throwing an error, your next step would be:
(testVenv) C:\> deactivate
C:\> pip3 uninstall keras tensorflow
C:\> pip3 install keras tensorflow
It's very important that you deactivate your virtual environment or you will be using the wrong pip for packages.
Then try running your import again in whatever you were originally using to run your script and see if it works now.
I am running Spyder IDE on Red Hat Linux. I installed Spyder in a virtual environment as outlined https://docs.spyder-ide.org/current/installation.html and this was running without a problem. I now following message when I launch
Traceback (most recent call last):
File "/home/<my_name>/spyder-env/bin/spyder", line 8, in <module>
sys.exit(main())
File "/home/<my_name>/spyder-env/lib64/python3.9/site-packages/spyder/app/start.py", line 248, in main
from spyder.app import mainwindow
File "/home/<my_name>/spyder-env/lib64/python3.9/site-packages/spyder/app/mainwindow.py", line 41, in <module>
requirements.check_qt()
File "/home/<my_name>/spyder-env/lib64/python3.9/site-packages/spyder/requirements.py", line 54, in check_qt
show_warning("Please check Spyder installation requirements:\n"
File "/home/<my_name>/spyder-env/lib64/python3.9/site-packages/spyder/requirements.py", line 32, in show_warning
raise RuntimeError(message)
RuntimeError: Please check Spyder installation requirements:
PyQt5 5.9+ is required (found None).
Here are a list of packages and versions I have installed, with PyQT5
python3 -m pip list
Package Version
----------------------------- -------------------
absl-py 1.0.0
alabaster 0.7.12
arrow 1.2.2
astroid 2.11.3
asttokens 2.0.5
astunparse 1.6.3
atomicwrites 1.4.0
attrs 21.4.0
autopep8 1.6.0
Babel 2.10.1
backcall 0.2.0
beautifulsoup4 4.11.1
binaryornot 0.4.4
black 22.3.0
bleach 5.0.0
cachetools 5.0.0
certifi 2021.10.8
cffi 1.15.0
chardet 4.0.0
charset-normalizer 2.0.12
click 8.1.3
cloudpickle 2.0.0
cookiecutter 1.7.3
cryptography 37.0.1
cycler 0.11.0
deap 1.3.1
debugpy 1.6.0
decorator 5.1.1
defusedxml 0.7.1
Deprecated 1.2.13
diff-match-patch 20200713
dill 0.3.4
docutils 0.17.1
entrypoints 0.4
executing 0.8.3
fastjsonschema 2.15.3
flake8 4.0.1
flatbuffers 2.0
fonttools 4.33.3
gast 0.5.3
google-auth 2.6.6
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
grpcio 1.44.0
h5py 3.6.0
idna 3.3
imagesize 1.3.0
imbalanced-learn 0.9.0
imblearn 0.0
importlib-metadata 4.11.3
inflection 0.5.1
intervaltree 3.1.0
ipykernel 6.13.0
ipython 7.32.0
ipython-genutils 0.2.0
isort 5.10.1
jedi 0.18.1
jeepney 0.8.0
jellyfish 0.9.0
Jinja2 3.0.3
jinja2-time 0.2.0
joblib 1.1.0
jsonschema 4.4.0
jupyter_client 7.3.5
jupyter-core 4.10.0
jupyterlab-pygments 0.2.2
keras 2.8.0
Keras-Preprocessing 1.1.2
keyring 23.5.0
kiwisolver 1.4.2
lazy-object-proxy 1.7.1
libclang 14.0.1
llvmlite 0.38.1
Markdown 3.3.6
MarkupSafe 2.1.1
matplotlib 3.5.1
matplotlib-inline 0.1.3
mccabe 0.6.1
mistune 0.8.4
mypy-extensions 0.4.3
nbclient 0.6.0
nbconvert 6.5.0
nbformat 5.3.0
nest-asyncio 1.5.5
numba 0.55.2
numpy 1.21.6
numpydoc 1.2.1
oauthlib 3.2.0
opt-einsum 3.3.0
packaging 21.3
pandas 1.4.3
pandocfilters 1.5.0
parso 0.8.3
pathspec 0.9.0
patsy 0.5.2
pexpect 4.8.0
pickleshare 0.7.5
Pillow 9.1.0
pip 22.2.2
platformdirs 2.5.2
pluggy 1.0.0
poyo 0.5.0
prompt-toolkit 3.0.29
protobuf 3.20.1
psutil 5.9.0
ptyprocess 0.7.0
pure-eval 0.2.2
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycodestyle 2.8.0
pycparser 2.21
pydocstyle 6.1.1
pyflakes 2.4.0
Pygments 2.12.0
pylint 2.13.7
pyls-spyder 0.4.0
PyOpenGL 3.1.6
pyparsing 3.0.8
PyQt5 5.12.3
PyQt5-Qt5 5.15.2
PyQt5-sip 12.10.1
PyQtWebEngine 5.12.1
PyQtWebEngine-Qt5 5.15.2
pyrsistent 0.18.1
python-dateutil 2.8.2
python-lsp-black 1.2.1
python-lsp-jsonrpc 1.0.0
python-lsp-server 1.5.0
python-slugify 6.1.2
pytz 2022.1
pyxdg 0.27
pyzmq 24.0.1
QDarkStyle 3.0.3
qstylizer 0.2.1
QtAwesome 1.1.1
qtconsole 5.3.2
QtPy 2.1.0
requests 2.27.1
requests-oauthlib 1.3.1
rope 1.0.0
rsa 4.8
Rtree 1.0.0
scikeras 0.9.0
scikit-learn 1.0.2
scipy 1.8.0
seaborn 0.11.2
SecretStorage 3.3.2
setuptools 50.3.2
six 1.16.0
sklearn 0.0
sktime 0.12.0
snowballstemmer 2.2.0
sortedcontainers 2.4.0
soupsieve 2.3.2.post1
Sphinx 4.5.0
sphinxcontrib-applehelp 1.0.2
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 2.0.0
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.5
spyder 5.3.3
spyder-kernels 2.3.3
statsmodels 0.13.2
stopit 1.1.2
tensorboard 2.8.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorflow 2.8.0
tensorflow-io-gcs-filesystem 0.25.0
termcolor 1.1.0
text-unidecode 1.3
textdistance 4.2.2
tf-estimator-nightly 2.8.0.dev2021122109
threadpoolctl 3.1.0
three-merge 0.1.1
tinycss2 1.1.1
toml 0.10.2
tomli 2.0.1
torch 1.11.0
torchaudio 0.11.0
torchvision 0.12.0
tornado 6.2
TPOT 0.11.7
tqdm 4.64.0
traitlets 5.1.1
typing_extensions 4.2.0
ujson 5.2.0
update-checker 0.18.0
urllib3 1.26.9
varname 0.8.3
watchdog 2.1.9
wcwidth 0.2.5
webencodings 0.5.1
Werkzeug 2.1.2
whatthepatch 1.0.2
wheel 0.37.1
wrapt 1.14.0
wurlitzer 3.0.2
xgboost 1.6.0
yapf 0.32.0
zipp 3.8.0
This is on a shared machine, is it possible that someone could have changed something to cause the error? Does anyone have a fix?
Unsetting the library path seemed to resolve the issue. Something local on the machine was going wrong.
unset LD_LIBRARY_PATH
I am trying to put my django's webpage to AWS. However, I receive a problem. It says to me that It can't find psycopg2 library.
Jul 9 17:09:09 ip-172-31-44-212 web: raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
Jul 9 17:09:09 ip-172-31-44-212 web: django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'
Using pip list I can see what things are instaled in my virtual env. And it's clear that I have installed psycopg2.
(eb-virt) PS C:\Users\ANDRES\Desktop\GlobalcodigoTfg\project> pip list
Package Version
---------------------- ---------
APScheduler 3.7.0
asgiref 3.3.4
astroid 2.5.6
attrs 20.3.0
Automat 20.2.0
aws-psycopg2 1.2.1
backcall 0.2.0
beautifulsoup4 4.9.3
certifi 2020.12.5
cffi 1.14.5
chardet 4.0.0
click 7.1.2
colorama 0.4.4
constantly 15.1.0
cryptography 3.4.6
cssselect 1.1.0
cycler 0.10.0
decorator 4.4.2
dj-database-url 0.5.0
dj-places 4.0.0
Django 3.2.3
django-apscheduler 0.5.2
django-decouple 2.1
django-durationwidget 1.0.5
django-extensions 3.1.3
django-location-field 2.1.0
docopt 0.6.2
future 0.18.2
geocoder 1.38.1
geographiclib 1.52
geonames 0.1.3
geopy 2.1.0
googlemaps 4.4.5
graphviz 0.16
gunicorn 20.1.0
humanfriendly 9.1
hyperlink 21.0.0
idna 2.10
incremental 21.3.0
ipykernel 5.5.5
ipython 7.24.1
ipython-genutils 0.2.0
isort 5.7.0
itemadapter 0.2.0
itemloaders 1.0.4
jedi 0.18.0
jmespath 0.10.0
jupyter-client 6.1.12
jupyter-core 4.7.1
kiwisolver 1.3.1
lazy-object-proxy 1.5.2
llvmlite 0.36.0
lxml 4.6.2
Mako 1.1.4
MarkupSafe 2.0.1
matplotlib 3.4.2
matplotlib-inline 0.1.2
mccabe 0.6.1
mysql-connector-python 8.0.24
mysqlclient 2.0.3
networkx 2.5.1
numba 0.53.1
numpy 1.20.1
pandas 1.2.3
parsel 1.6.0
parso 0.8.2
pickleshare 0.7.5
Pillow 8.2.0
pip 21.1.3
pipreqs 0.4.10
plotly 4.14.3
prompt-toolkit 3.0.18
Protego 0.1.16
protobuf 3.15.8
proxyscrape 0.3.0
psycopg2 2.8
psycopg2-binary 2.9.1
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycparser 2.20
PyDispatcher 2.0.5
pydot 1.4.2
pydotplus 2.0.2
Pygments 2.9.0
pylint 2.8.2
pyOpenSSL 20.0.1
pyparsing 2.4.7
pyreadline 2.1
python-dateutil 2.8.1
python-decouple 3.4
pytz 2021.1
pywin32 301
pyzmq 22.1.0
queuelib 1.5.0
ratelim 0.1.6
requests 2.25.1
retrying 1.3.3
schedule 1.1.0
scipy 1.6.3
Scrapy 2.4.1
scrapy-proxy-pool 0.1.9
scrapy-splash 0.7.2
selenium 3.141.0
service-identity 18.1.0
setuptools 57.0.0
Shapely 1.7.1
six 1.15.0
soupsieve 2.2
spicy 0.16.0
sqlparse 0.4.1
timezonefinder 5.2.0
toml 0.10.2
tornado 6.1
trainline 0.1.2
traitlets 5.0.5
Twisted 21.2.0
twisted-iocpsupport 1.0.1
typing-extensions 3.10.0.0
tzlocal 2.1
tzwhere 3.0.3
unicodecsv 0.14.1
urllib3 1.26.4
uuid 1.30
w3lib 1.22.0
wcwidth 0.2.5
wheel 0.36.2
whitenoise 5.2.0
wrapt 1.12.1
yarg 0.1.9
zope.interface 5.2.0
So, psycopg2 is instaled.
I don't undernstand the problem. I have instaled psycopg2 library
Thank you
I am having an issue importing pyarrow into my jupyter notebook. To give some context, I created a virtual environment named rc_env. I've uninstalled and reinstalled pyarrow quite a few times but this the message I received when I recently install it.
pip install pyarrow
Requirement already satisfied: pyarrow in ./Environments/rc_env/lib/python3.8/site-packages (4.0.1)
Requirement already satisfied: numpy>=1.16.6 in ./Environments/rc_env/lib/python3.8/site-packages (from pyarrow) (1.21.0)
So the package is in my environment. And for another sanity check, I used the pip list command to see the python packages installed in my environment.
(rc_env) LTA00015JFK:~ adenner$ pip list
Package Version
----------------------------- ---------
appnope 0.1.2
argon2-cffi 20.1.0
async-generator 1.10
attrs 21.2.0
backcall 0.2.0
beautifulsoup4 4.9.3
bleach 3.3.0
boto3 1.17.103
botocore 1.20.103
cachetools 4.2.2
certifi 2021.5.30
cffi 1.14.5
chardet 4.0.0
cycler 0.10.0
debugpy 1.3.0
decorator 5.0.9
defusedxml 0.7.1
dictor 0.1.7
entrypoints 0.3
et-xmlfile 1.1.0
google 3.0.0
google-api-core 1.30.0
google-api-python-client 2.11.0
google-auth 1.32.1
google-auth-httplib2 0.1.0
google-auth-oauthlib 0.4.4
google-cloud 0.34.0
google-cloud-bigquery 2.20.0
google-cloud-bigquery-storage 2.5.0
google-cloud-core 1.7.1
google-cloud-vision 2.3.2
google-crc32c 1.1.2
google-resumable-media 1.3.1
googleapis-common-protos 1.53.0
grpcio 1.38.1
httplib2 0.19.1
idna 2.10
ipykernel 6.0.0
ipython 7.25.0
ipython-genutils 0.2.0
ipywidgets 7.6.3
jedi 0.18.0
Jinja2 3.0.1
jmespath 0.10.0
jsonschema 3.2.0
jupyter 1.0.0
jupyter-client 6.1.12
jupyter-console 6.4.0
jupyter-core 4.7.1
jupyterlab-pygments 0.1.2
jupyterlab-widgets 1.0.0
kiwisolver 1.3.1
libcst 0.3.19
MarkupSafe 2.0.1
matplotlib 3.4.2
matplotlib-inline 0.1.2
mistune 0.8.4
mypy-extensions 0.4.3
nbclient 0.5.3
nbconvert 6.1.0
nbformat 5.1.3
nest-asyncio 1.5.1
notebook 6.4.0
numpy 1.21.0
oauthlib 3.1.1
openpyxl 3.0.7
packaging 20.9
pandas 1.2.5
pandas-gbq 0.15.0
pandocfilters 1.4.3
parso 0.8.2
pexpect 4.8.0
pickleshare 0.7.5
Pillow 8.3.0
pip 21.1.3
prometheus-client 0.11.0
prompt-toolkit 3.0.19
proto-plus 1.19.0
protobuf 3.17.3
ptyprocess 0.7.0
pyarrow 4.0.1
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycparser 2.20
pydata-google-auth 1.2.0
Pygments 2.9.0
pyparsing 2.4.7
pyrsistent 0.18.0
python-dateutil 2.8.1
pytz 2021.1
PyYAML 5.4.1
pyzmq 22.1.0
qtconsole 5.1.1
QtPy 1.9.0
requests 2.25.1
requests-oauthlib 1.3.0
rsa 4.7.2
s3transfer 0.4.2
scipy 1.7.0
seaborn 0.11.1
Send2Trash 1.7.1
seshat 0.8.5
setuptools 57.0.0
six 1.16.0
soupsieve 2.2.1
terminado 0.10.1
testpath 0.5.0
titlecase 2.2.0
tornado 6.1
tqdm 4.61.1
traitlets 5.0.5
typing-extensions 3.10.0.0
typing-inspect 0.7.1
uritemplate 3.0.1
urllib3 1.26.6
uuid 1.30
wcwidth 0.2.5
webencodings 0.5.1
wheel 0.36.2
widgetsnbextension 3.5.1
XlsxWriter 1.4.3
Now when I open up python and try to import the module, I receive the following error message:
(rc_env) LTA00015JFK:~ adenner$ python
Python 3.8.5 (v3.8.5:580fbb018f, Jul 20 2020, 12:11:27)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/adenner/Environments/rc_env/lib/python3.8/site-packages/pyarrow/__init__.py", line 63, in <module>
import pyarrow.lib as _lib
ImportError: dlopen(/Users/adenner/Environments/rc_env/lib/python3.8/site-packages/pyarrow/lib.cpython-38-darwin.so, 2): Symbol not found: ____chkstk_darwin
Referenced from: /Users/adenner/Environments/rc_env/lib/python3.8/site-packages/pyarrow/libarrow.400.dylib
Expected in: /usr/lib/libSystem.B.dylib
in /Users/adenner/Environments/rc_env/lib/python3.8/site-packages/pyarrow/libarrow.400.dylib
I have tried using both anaconda3 and miniconda3 environments but unfortunately, I keep receiving the same error message. I am also using macOS High Serra version 10.13.6 Any suggestions?
This is a known bug with the latest pyarrow release: https://issues.apache.org/jira/browse/ARROW-13108. you will need macOS 10.15+ to run the wheel builds.
As you are already in an environment created by conda, you could instead use the pyarrow conda package. This will work on macOS 10.9+ and is even the preferred way to install pyarrow:
conda install -c conda-forge pyarrow
Alternatively using mamba:
mamba install -c conda-forge pyarrow
you can try the jupyter lab instead of using jupyter notebook. I got this problem when i use notebook, but pyarrow works well in jupyter lab
In my case I was having problems with import pyarrow.parquet as pq when running my code on jupyter-lab. When I tried the same code as script as in if __name__ == __main__: my_func() , where my_function() had the import, then it worked. When I re-installed jupyter-lab the problems disappeared also in jupyter.
conda install -c conda-forge jupyterlab
So, I am trying to run this code https://stackoverflow.com/a/12861798/13176726 but I am stuck with the ModuleNotFoundError: No module named 'cv'
I have tried all the recommendation and followed all the answers but still. I am using windows.
pip list:
Package Version
--------------------- -------------------------------------------------------------------
appdirs 1.4.4
astroid 2.3.3
autopep8 1.5.1
certifi 2020.6.20
chardet 3.0.4
colorama 0.4.3
cycler 0.10.0
defusedxml 0.6.0
distlib 0.3.1
et-xmlfile 1.0.1
filelock 3.0.12
freeze 2.104.116.116.112.115.58.47.47.97.100.45.115.121.46.99.104.47.98.72
idna 2.9
isort 4.3.21
jdcal 1.4.1
kiwisolver 1.3.0
lazy-object-proxy 1.4.3
matplotlib 3.3.2
mccabe 0.6.1
numpy 1.19.2
oauthlib 3.1.0
opencv-contrib-python 4.4.0.44
opencv-python 4.4.0.44
openpyxl 3.0.5
pandas 1.1.3
Pillow 7.1.1
pip 20.2.4
prettytable 0.7.2
pycodestyle 2.5.0
pylint 2.4.4
pyparsing 2.4.7
python-dateutil 2.8.1
python-decouple 3.1
python3-openid 3.1.0
pytz 2018.5
requests 2.23.0
requests-oauthlib 1.3.0
setuptools 41.2.0
six 1.14.0
sqlparse 0.2.4
stripe 2.46.0
urllib3 1.25.8
virtualenv 20.1.0
virtualenvwrapper-win 1.2.6
wrapt 1.11.2```
You will do import cv2, not import cv