Pytest-html shows error "unrecognized arguments" - pytest-html

I have pytest-html installed but I'm getting this error everytime i try to generate a report.
enter image description here

I've come across same issue, but with a different option. It got resolved by updating pytest version from pytest-5.3.2 to pytest-5.4.3
python -m pip install --upgrade
This will install latest version of pytest.

Related

How to properly install prophet with python 3.9.13

The current pystan==2.19.1.1, and it seems that this's the highest version in python 3.9.
I have tried:
pip install prophet. Using this command I can install the prophet but when running fit I got errors. Error: Unexpected exception formatting exception. Falling back to standard exception.
pip install fbprophet. couldn't install it.
conda install -c "conda-forge/label/broken" prophet. Using this command I can install the prophet but when running fit I got errors again. Error: 'StanModel' object has no attribute 'fit_class'.
I have tried everything I can find online so far but still couldn't solve the problem, and unfortunately I can't change my python version cause I need this particular one to install keras and tensorflow in mac M1 system.

Installation problem with PyTorch's Geometric. "torch-scatter" produces an error with exit status 1

Could anyone if used PyTorch geometric before, help me resolve this issue. I'm having trouble installing torch-scatter from PyTorch Geometric to deal with some tabular data for question answering task based on TAPAS model. I presume there is a compile error at source. I tried checking other forums and found no solution for this yet.
Procedure followed to produce the error:
pip3 install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
pip3 install torch-scatter
Console output:
ERROR: Command errored out with exit status 1:
I also tried using the python -f flag and specifically tried to pull from the source at:
pip3 install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.1+cpu.html
Following are my PyTorch and CUDA versions with the respective imports and console outputs:
python -c "import torch; print(torch.__version__)"
Output:
1.8.1+cpu
CUDA version:
python -c "import torch; print(torch.version.cuda)"
Output:
None
Python version:
Python 3.7.5
Thank you very much for your time and guidance.
Solution found:
The error is due to wrong/unsupported GCC versions (that's indeed more PyTorch related). I tried installing from binaries which couldn't find compatible version. After some research, I found that Pytorch geometric installation documentation suggests that only PyTorch versions 1.4.0, 1.5.0, 1.6.0, 1.7.0, and 1.8.0 are compatible, but does not explicitly mentions this.
Following solution worked:
Downgrading PyTorch to any of the above versions solved the issue. Make sure that you use the same version of PyTorch and torch-scatter while installation. In my case, 1.8.0
I had this problem too which is solved by install C++ build tools. You can install it from vs_buildtools.exe that is downloadable here
I also had some issues related to the torch_geometric, and I resolved those issues after some research. Following are the solutions that I have applied:
After installing torch, please install the following libs:
1. torch-scatter
2. torch-sparse
3. torch-cluster
Then install torch-geometric.
You can install the above packages using pip command (pip install ), If it does not work install through HTML link by selecting your specific version.
Command: pip install libname -f link
Example: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.12.0%2Bcpu.html
For my case, I have used the torch 1.12 and install the above packages from the above link.
Thanks

How to install mlflow using pip install

I'm working on a Window 10 machine and trying to pip install mlflow but I'm getting the following error message.
THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
mlflow from https://files.pythonhosted.org/packages/01/ec/8c9448968d4662e8354b9c3a62e635f8929ed507a45af3d9fdb84be51270/mlflow-1.0.0-py3-none-any.whl#sha256=0f2f116a377b9da538642eaf688caa0a7166ee1ede30c8734830eb9e789574b4:
Expected sha256 0f2f116a377b9da538642eaf688caa0a7166ee1ede30c8734830eb9e789574b4
Got eb34ea16ecfe02d474ce50fd1f88aba82d56dcce9e8fdd30193ab39edf32ac9e
It is trying to check cache for packages. They were likely compiled in linux or some other OS and you are trying to install them in Windows.
This should fix your issue:
pip install --no-cache-dir mlflow

Environment error when installing with pip

I'm trying to install some python libraries with pip and I'm getting a repeated error when running it. For example, if I run pip install -U py2app the download appears to proceed as normally, but then an error is raised:
Could not install packages due to an EnviromentError
Which is followed by a series of [Errno 1] Operation not permitted errors (with directories listed after each error).
This error has appeared a number of times on several different libraries I've attempted to install, and it's extremely frustrating. I've tried to update the tools that people have recommended to update for various pip errors and none of them have made any difference.
Is there an easy fix to this problem?
Try to install using the option --user for example:
$ pip install --user py2app
Passing the --user option will install a package just for the current user, rather than for all users of the system.

Python: No Pip after installing latest version

After not being able to use pip getting an "invalid syntax" error when entering "python pip" in the CMD-Line of windows, I downloaded the latest python package from the website and installed it.
But same problem.
Even in the Python folder there is neither a pip.py nor a "get-pip.py". That's pretty weird.
What could be the reason?

Resources