Closed sibyjackgrove closed 6 years ago
To get the new version, you'll need to run
!pip install -e bird-or-bicycle
To get the new version, you'll need to run
!pip install -e bird-or-bicycle
I tried that too. I also installed the unrestricted-advex module. But still not able to import both of them
Running setup.py develop for bird-or-bicycle Successfully installed Pillow-5.2.0 awscli-1.16.19 bird-or-bicycle botocore-1.12.9 colorama-0.3.9 docutils-0.14 jmespath-0.9.3 rsa-3.4.2 s3transfer-0.1.13 torch-0.4.1 torchvision-0.2.1
Running setup.py develop for unrestricted-advex Successfully installed cleverhans-2.1.0 cython-0.28.5 foolbox-1.4.0 mnist-0.2.1 nose-1.3.7 pycodestyle-2.4.0 randomgen-1.15.0 terminaltables-3.1.0 unrestricted-advex
Here is what I got when I did!pip freeze
It seems the correct name of the module is not showing up.
Ah ok. I replicated the issue. It looks like you need to restart the colab kernel in order for the kernel to pick up the newly pip-installed package
Let me know if that fixes the issue for you!
Let me know if that fixes the issue for you!
Yes, I restarted the kernel as you suggested. It works now and I am able to import the two modules. Thanks a lot for the help.
sir im unable to install utils
File "
That is not valid python syntax: you can't put a space between "python utils". Where did you get this code? Did you mean something different?
Is this issue related to this one, and if not, could you please raise a new issue?
When i run this in google colab ,i found this error?? would you please tell me how can i solve this error? ModuleNotFoundError Traceback (most recent call last)
You can try to install the localization module using '!pip localization'.
while install nst_utils I am getting error
**!pip install nst_utils**
Collecting nst_utils
ERROR: Could not find a version that satisfies the requirement nst_utils (from versions: none)
ERROR: No matching distribution found for nst_utils
Hello, I need your help please , I'm working with google colab and I got an error: No module named 'reco_utils' ? I tried to install the package with pip or apt but still same error !
If You installed package, but you still get "No module ..." error, You can try to install package with "pip3".
Hello, I need your help please , I'm working with google colab and I got an error: No module named 'reco_utils' ? I tried to install the package with pip or apt but still same error !
Try to restart the kernel and try with !pip or !pip3
having issue on importing google.colab
Rolling back uninstall of pandas Moving to d:\software\python\lib\site-packages\pandas-1.3.0.dist-info\ from D:\Software\python\Lib\site-packages\~andas-1.3.0.dist-info Moving to d:\software\python\lib\site-packages\pandas\ from D:\Software\python\Lib\site-packages\~andas ERROR: Command errored out with exit status 1: 'd:\software\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\modhv\AppData\Local\Temp\pip-install-rpxshz84\pandas\setup.py'"'"'; file='"'"'C:\Users\modhv\AppData\Local\Temp\pip-install-rpxshz84\pandas\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\modhv\AppData\Local\Temp\pip-record-ovsi0ksh\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.WARNING: You are using pip version 19.2.3, however version 21.1.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
import ffmpeg ModuleNotFoundError: No module named 'ffmpeg '
cannot found how to debug it, i'm using pycharm. help me there.
What is the exact issue you are having , are you not able to import packages in pycharm or google colab ? @nadia-bashir
I believed that I got the same error: I tried to use transformers. And have installed it via another package (who use transformers as one of dependencies). I got "ModuleNotFoundError". I even tried to do !pip/!pip3 again:
!pip3 install transformers
and got:
Requirement already satisfied: transformers in /usr/local/lib/python3.9/site-packages/transformers-4.10.2-py3.9.egg (4.10.2)
Requirement already satisfied: filelock in /usr/local/lib/python3.9/site-packages/filelock-3.3.1-py3.9.egg (from transformers) (3.3.1)
Requirement already satisfied: huggingface-hub>=0.0.12 in /usr/local/lib/python3.9/site-packages/huggingface_hub-0.0.19-py3.9.egg (from transformers) (0.0.19)
Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.9/site-packages (from transformers) (1.21.1)
Requirement already satisfied: packaging in /usr/local/lib/python3.9/site-packages/packaging-21.0-py3.9.egg (from transformers) (21.0)
Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.9/site-packages/PyYAML-6.0-py3.9-linux-x86_64.egg (from transformers) (6.0)
Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.9/site-packages/regex-2021.10.8-py3.9-linux-x86_64.egg (from transformers) (2021.10.8)
Requirement already satisfied: requests in /usr/local/lib/python3.9/site-packages (from transformers) (2.25.1)
Requirement already satisfied: sacremoses in /usr/local/lib/python3.9/site-packages/sacremoses-0.0.46-py3.9.egg (from transformers) (0.0.46)
Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /usr/local/lib/python3.9/site-packages/tokenizers-0.10.3-py3.9-linux-x86_64.egg (from transformers) (0.10.3)
Requirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.9/site-packages (from transformers) (4.61.2)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.9/site-packages/typing_extensions-3.10.0.2-py3.9.egg (from huggingface-hub>=0.0.12->transformers) (3.10.0.2)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.9/site-packages (from packaging->transformers) (2.4.7)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/local/lib/python3.9/site-packages (from requests->transformers) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests->transformers) (1.26.6)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests->transformers) (2021.10.8)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests->transformers) (2.10)
Requirement already satisfied: click in /usr/local/lib/python3.9/site-packages/click-8.0.3-py3.9.egg (from sacremoses->transformers) (8.0.3)
Requirement already satisfied: joblib in /usr/local/lib/python3.9/site-packages/joblib-1.1.0-py3.9.egg (from sacremoses->transformers) (1.1.0)
Requirement already satisfied: six in /usr/local/lib/python3.9/site-packages (from sacremoses->transformers) (1.16.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
But when I tried to import this package:
import transformers
transformers.__file__
I still got (The same as before):
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-7-3f209fc7b4a0> in <module>()
----> 1 import transformers
2 transformers.__file__
ModuleNotFoundError: No module named 'transformers'
I also tried:
But none of them works. Would be appreciate for any suggestions!
I was trying to clone and install on a Google Colab instance following the instructions provided here. But I am unable to import the any of the modules. First I cloned the repository and changed to that directory.
Then I used the pip install command.
The installation completed without any error.
However, when I try to import I get the 'module not found error'. Could anyone tell me what I am doing wrong? Is it even possible to install this module using Colab. I tried the same commands on my PC (without the IPython magics) and it works.