Q:CondaValueError: Malformed version string '~': invalid character(s) - anaconda

I solved the problem as follows:
CondaValueError: Malformed version string '~': invalid character(s)
but upgrading Anaconda had the same problem,
The error picture is as follows:
Thank you in advance

Try the following:
python -m pip install --upgrade conda --user pip

Related

How to install discord_components in discord.py?

I used the command from discord-components "pip install --upgrade discord-components" in cmd and I get this error very time in every python version " No matching distribution found for discord-components" and I have python version 3.10.6.
Please someone can help me?
pip install cookies-discord-components
Works for me

Failure in pip installing biopython

When I write pip install biopython on Bash, I get the error messages "error: subprocess-exited-with-error" and further down "error: legacy-install-failure" in the output. I can confirm using python --version and pip --version that both exist (version 2.7 and 22.1.4), and I can pip install other packages like matplotlib, so I know the problem is not with pip install itself. The output also tells me there is something likely wrong with the biopython package itself. How can this be fixed so I can pip install biopython?
Use conda instead, for example:
conda create --name biopython biopython

Pipx failed to build packages

When I run the command pipx install eth-brownie I receive the following error message,
fatal error from pip prevented installation. Full pip output in file:
/Users/gentgjonbalaj/.local/pipx/logs/cmd_2021-10-22_11.10.14_pip_errors.log
pip failed to build package:
cytoolz
Some possibly relevant errors from pip install:
cytoolz/functoolz.c:23087:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
cytoolz/functoolz.c:23092:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
cytoolz/functoolz.c:23176:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
error: command '/usr/bin/clang' failed with exit code 1
Error installing eth-brownie.
I tried to use the command "pip install eth-brownie" but my terminal says "pip command not found."
I received the same error, and was finally able to resolve after running the following commands:
Using Homebrew:
brew install recordclass
brew install cython
xcrun codesign --sign - "/Users/jon/Library/Python/3.8/lib/python/site-packages/regex/_regex.cpython-38-darwin.so"
pip3 install cytoolz
pip3 install pybind11
M1 Mac Chips has issues. There are issues at 2 fronts. (a) cytoolz, (b) regex==2021.10.8.
(a) cytoolz is resolved by doing pip install cytoolz and not pipx
(b) regex issue is a big one. The issue is with the version. Packaging bug causes an x86_64 regex to be installed on an Apple Silicon (M1) device (https://githubmemory.com/#dragos-vlad). To fix this: Pinning regex to 2021.9.30 should work for the time being. However for that you will have to change the requirements in the brownie git that you will use for installing.
For anyone using Windows 10 I had the same issue, just had to run:
pip install Cython
then
pip install eth-brownie
For whatever reason I was finally able to install with pip but not with pipx.
I have this problem with python 3.10. Try pyenv and use python 3.9.1 and it works.
What worked for me in Python 3.10 was installing cython and cytoolz before brownie.
Enter these three commands:
python3 -m pip install --user cython
python3 -m pip install --user cytoolz
python3 -m pip install --user eth-brownie
I had the same problem, Use pip rather than pipx.
command: pip install eth-brownie
For anyone using Python 3.10 on windows, simple run
pip install eth-brownie
It worked for me when I used pip3 install eth-brownie instead of pipx

I'm trying to install Kivy with Python 3.9.0 and it gives me an error after I type: python -m pip install kivy

I'm on Windows 10.
I was following the instructions on https://kivy.org/doc/stable/installation/installation-windows.html# and I reached the part where it says:
Install Kivy:
python -m pip install kivy==1.11.1
After I type it in cmd, it gives me an error. I'll put the error as a comment.
Try pip install pipwin and then pipwin install kivy==1.11.1
Credits to #KetZoomer
try to install thanks to pip, type in a terminal:
pip install kivy[base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/

Unable to pip install -U sentence-transformers

I am unable to do: pip install -U sentence-transformers. I get this message on Anaconda Prompt:
ERROR: Could not find a version that satisfies the requirement torch>=1.0.1 (from sentence-transformers) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.0.1 (from sentence-transformers)
Can someone help?
I tried to Conda Install pytorch and then installed Sentence Transformer by doing these steps:
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
pip install -U sentence-transformers
This worked.
Thanks
The other answers weren't working for me even though I saw them working for others on other message boards. This did work for me though.
pip install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install -U sentence-transformers
Maybe try pip3? That might be why it says that it can't find a version.

Resources