ImportError: No module named googleads

I have a django project using python 2.7 and want to deploy it on Google App Engine(GAE). I followed all this link for the tutorial: https://cloud.google.com/python/django/appengine When I...

deployment error - django to elastic beanstalk

I am trying to deploy a django app to AWS using elastic beanstalk but it is saying that my requirements.txt is invalid when I run eb deploy. Can someone please help? Do I need to create eb virtual...

unable to use flask.ext.classy

I have been given a project that uses python 2.7. I have been given the requirements.txt file. I have created a conda environment by conda create --name mypy2project python=2.7 Then I activate...

use asyncio and aiofiles to generate flat files asynchronously isn't working perfectly

I'm learning async programming in python, and knowing asyncio is the latest package we should use, so I tried to write a simple script to generate some files asynchronously(I used threading to...

from xgboost import XGBClassifier & import xgboost as xgb

I have already installed xgboost (using pip on anaconda),and import xgboost as xgb is fine.However when I am using from xgboost import XGBClassifier ,there is an error: ImportError: cannot...

Tensorflow ImportError - DLL load failed

First thing to report is that I have a CPU without AVX support. So I have bought GeForce GTX1060 to be able to run Tensorflow, but unfortunately I cannot get it to work. I am getting...

Unable to install tensorflow on Win10 - ImportError: DLL load failed

Trying to run import tensorflow as tf but it failed. I just installed tensorflow but is not allowing to import it. This is the...

How to solve "ImportError: DLL load failed:" for fancyimpute which previously worked

I could previously successfully import modules from fancyimpute in one Jupyterlab notebook and not in others. After restarting my PC it fails in all notebooks with a "ImportError: DLL load failed:...

using pyinstaller with mayavi.mlab import

I would like to use pyinstaller to convert a python script containing "from mayavi import mlab" into an .exe file. The python script Test1.py contains just one line code: from mayavi import...

Issue importing scikit-learn: module 'scipy' has no attribute '_lib'

I'm new to Python and am using Anaconda on Windows 10 to learn how to implement machine learning. Running this code on Spyder: import sklearn as skl Originally got me this: Traceback (most recent...

ERROR: You must give at least one requirement to install -- when running: pip install --upgrade --no-binary hdbscan

I am trying to install hdbscan in my PC which runs Windows 10 and has installed Python 3.6. My first attempt failed: (base) C:\WINDOWS\system32>pip install hdbscan --user Collecting hdbscan ...

Can you put pyi_rth_certifi in an EXE file?

After Attempting to install auto-py-to-exe (https://pypi.org/project/auto-py-to-exe/) Sorting my installation problems...

No module named 'matplotlib.artist'

I faced with this error No module named 'matplotlib.artist' here is the complete error: --------------------------------------------------------------------------- ModuleNotFoundError ...

Unable to Deploy Flask App on Gcloud: ModuleNotFoundError: No module named 'flask_bcrypt'

I am getting the following error when deploying my gcloud app with: gcloud app deploy app.yaml and I would get a "Error: Server Error" at the site even it is built successfully. The logs read the...

How can I improve the performance of my script?

I have a "seed" GeoDataFrame (GDF)(RED) which contains a 0.5 arc minutes global grid ((1802)(360*2) = 259200). Each cell contains an absolute population estimate. In addition, I have a "leech" GDF...

TensorFlow -- Duplicate plugins for name projector -- Anaconda Prompt

I am trying to run a generic analysis of mnist, as shown below. from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import...

Heroku - can't see application

Edit: Problem solved. i've created a basic app, using python and flask. i've deployed the app to heroku and heroku didn't raise any exceptions or errrors. But when i open my app i getting...

error H13 on heroku on an dash application

import requests from bs4 import BeautifulSoup import pandas as pd import dash import dash_core_components as dcc import dash_html_components as html import...

keras epoch runs twice

When I run the model.fit_generator, the epoch runs twice, the first time it only goes up to 39/40, then the second time 40/40. Any reason why this is happening? Here is a GIF, you can also see...

python error: cannot import name 'core' from 'cupy.core'

I pretty new in Python programming and I try to run some DCGAN Training scripts https://github.com/ml5js/training-dcgan After creating my environment with conda and build all the dependencies , I...

AttributeError: module 'tensorflow' has no attribute 'compat' when loading tf.compat.v1.train.SessionRunHook

I can see that this question has been asked before here tensorflow-has-no-attribute-compat but the answer given was to Microsoft Visual C++ 2015-2019 Redistributable (x64) It did not work for the...

docker build ERROR: Could not install packages due to an EnvironmentError: [Errno 2]

I'm getting this error when I run docker build while its processing the requirements file. ERROR: Could not find a version that satisfies the requirement mkl-fft==1.0.6 (from -r /requirements.txt...

Jupyter Notebook not importing Geopandas

I try to import Geopandas on my Jupyter Notebook but it says that there is no module named geopandas. However, when I run !pip list it appears in the list so it must be installed in the...

Deployment in Heroku Fails Due to issue in requirements.txt

I am trying to deploy my flask app on heroku. I am using a Conda and i used the command "pip freeze> requirements.txt" to generate the requirements.txt file. But when i am pushing the code to...

Conda create environment with .yml file fails

I want to create an exact copy of my current environment in conda. So I am exporting my environment as a env_dashboard.yml file: (C:\Program Files\Anaconda3) C:\Users\TO3THY0>conda-env export -n...

Why do I get O365 module not found error?

I wanted to get Outlook calendar data but the module is not recognized, constantly giving the following error: ModuleNotFoundError: No module named 'O365' Right from the first line (from O365...

Importing stix2, ModuleNotFoundError: No module named 'six.moves.collections_abc'

I have issues importing the stix2 library regardless of the code I have written. Following https://github.com/oasis-open/cti-python-stix2, I followed the installations instructions and...

I have a ModuleNotFoundError: No module named 'Crypto'

Please need help When I try to run myfile.py it says, ModuleNotFoundError: No module named 'Crypto' ,but I already have the path for 'conda' and 'anaconda3' in my environment variables, I also...

Invalid requirement

I converted the requirements of my project into a txt file with the method below. pip freeze > requirements.txt And I tried to load the generated txt file with the code below to test it, but I...

How to create a requirements.txt file in Django project?

I have been trying to create a requirements.txt file from the Pycharm terminal but it is adding all unnecessary packages as well. What should I do to show only used...