Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 hours ago.
Improve this question
> pip install os
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement os (from versions: none)
ERROR: No matching distribution found for os
how to install os package ?
i want to install os package
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 12 months ago.
Improve this question
Hi I try to train my model, but when I run this command to do it:
$ python3 Tensorflow/models/research/object_detection/model_main_tf2.py --model_dir=models/my_ssd_resnet50_v1_fpn --pipeline_config_path=models/my_ssd_resnet50_v1_fpn/pipeline.config
I get error like so:
ModuleNotFoundError: No module named 'tensorflow_io'
I try to install it with 'pip' but I get another one
$ pip install tensorflow.io
ERROR: Could not find a version that satisfies the requirement tensorflow.io (from versions: none)
ERROR: No matching distribution found for tensorflow.io
I also try to fix it with GitHub issue https://github.com/tensorflow/io/issues/1298 and it work for me. I follow the last comment there and I get
Successfully installed tensorflow-io-gcs-filesystem-0.21.0
and I try it in python3 in terminal:
>>> import tensorflow.io
>>>
So why when I try to train my model it fails ?
Im using MacBook Pro with M1, and I have no idea how to fix it.
Thanks for any help
Use pip install tensorflow_io instead of pip install tensorflow.io
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have tried to install TensorFlow using pip install tensorflow but command prompt threw an error saying
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
Please make sure that the version of Python and the version of Tensorflow are not in conflict.
Check this first!
>>> python3 --version
Make sure it is not the latest one(like 3.10). It takes time for Other libraries to support the latest versions.
Then go to TensorFlow PIP history page and look for the compatible version.
Preferably use Anaconda for package management and install any big Frameworks/libraries in virtual environments
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
Guys every time I try to install sqlite3 with pip I get the error:
ERROR: Could not find a version that satisfies the requirement sqlite3 (from versions:none)
ERROR: No matching distribution found for sqlite3
My python version: 3.10.0
My pip version: 21.3
How can I solve this? I believe it's regarding my version of python so how can i update the pip to fix this? I've already tried this pip --upgrade pip
Edited:
Guys I installed python 3.7.0 and it's still the same thing.
sqlite3 is part of the standard library, meaning it is already installed with Python.
You can write a script following the documentation, and notice it says nothing about installation procedures.
The error is self-explanatory. For anything that can be installed with pip, you should refer to the source - PyPi. Search for sqlite3 and notice that you get no exact match
Many languages have built-in modules, for example, you seem to have maybe some NodeJS experience, so you can import things like os, readline, net, http modules without needing to npm install. You simply require them.
Python/Pip is no different with a simple import.
this error I mentioned in the question doesn't show up on Linux when I try to install the same things
Is that so? Seems to work for me (Using Docker because I'm on a Mac)
$ docker run --rm -ti --entrypoint=ash python:3.10-alpine
Unable to find image 'python:3.10-alpine' locally
3.10-alpine: Pulling from library/python
Digest: sha256:78604a29496b7a1bd5ea5c985d69a0928db7ea32fcfbf71bbde3e317fdd9ac5e
Status: Downloaded newer image for python:3.10-alpine
/ # pip install sqlite3
ERROR: Could not find a version that satisfies the requirement sqlite3 (from versions: none)
ERROR: No matching distribution found for sqlite3
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Could not find a version that satisfies the requirement:
anyio>=2.0.2 (from jupyter-server>=1.0->jupyter-server-proxy->vpython) (from
versions: 1.0.0a1, 1.0.0a2, 1.0.0b1
, 1.0.0b2, 1.0.0rc1, 1.0.0rc2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0, 1.3.1, 1.4.0)
No matching distribution found for:
anyio>=2.0.2 (from jupyter-server>=1.0->jupyter-server-proxy->vpython)
this was the error more info on this link https://www.youtube.com/watch?v=tOGfjaoSemw
As the error says it means that you are not fulfilling the requirements, either you don't have the minimum python version required or simply pip is too old. Try first to update pip using:
python3 -m pip install --upgrade pip
If it doesn't work you have to dig deeper into anyio package and see what are the pre-requisites for that version.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
It looks like os.system() error.I dont know what to do next.
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import re, platform, os
def init():
cmd = {
'centos': 'yum -y install python-devel && pip install psutil > /dev/null',
'ubuntu': 'apt-get -y install python-dev && pip install psutil > /dev/null'
}
os = platform.platform().lower()
osname = ''.join(key for key in cmd if re.findall(key,os))
try:
import psutil
except ImportError:
try:
os.system(cmd[osname])
import psutil
except Exception as error:
print("Error : {}".format(error))
def collect():
cpu = psutil.cpu_count(logical=False)
print('cpucount: {}'.format(cpu))
if __name__ == '__main__':
init()
os.system() function not accept string???? os.system('apt-get -y install python-dev && pip install psutil > /dev/null') ,It running when in python shell.I dont know how wrong.
[root#master python]# python test.py
Error : 'str' object has no attribute 'system'
os = platform.platform().lower() is your culprit. Use a different name for that local variable.