I am unable to install visual studio on chromebook - visual-studio

I tried installing visual basic using Linux beta but I got an error message which says!
the following packages have unmet dependencies:

Usually, you have to install the dependencies using your package manager.
sudo apt install -y <depencies> (In Ubuntu)
In Reddit, I saw you can install packages using Portage. But I think the standard is to use ChromeBrew.
You can dowloand the vscode for Gentoo/Portage here.
Aloso, here you have a related question that might help you as well (for Ubuntu)=)
https://askubuntu.com/questions/563178/the-following-packages-have-unmet-dependencies

Related

ERROR: Could not build wheels for prophet, which is required to install pyproject.toml-based projects

I am trying to install prophet using
pip install prophet
installation goes well at first, but then fails with the following error
ERROR: Failed building wheel for prophet Failed to build prophet ERROR: Could not build wheels for prophet, which is required to install pyproject.toml-based projects
I use the following technologies:
Python 3.11.0
pip 22.3
windows 11
I suspect that the problem is somehow related to pyproject.toml but I don’t know what it is and how to install it, please tell me how to fix the error and install the prophet correctly
I tried to google a ready solution or advice, but I only found similar errors when installing other libraries using pip
in the answers, people recommend installing another library, but in different topics it is different
I want to understand what I need to install if an error occurs when installing the prophet
This error message suggests that there was a problem building the wheel for the Prophet package.
A wheel is a built package that contains the necessary files for a Python package, and it allows for faster installation. Building a wheel for a package involves compiling the package's code, which can sometimes fail due to various reasons.
Here are a few things you can try to solve the issue:
Try installing the package again with the --no-binary :all: option.
This will force pip to build the package from the source, which may
resolve any issues with the pre-built wheel. The command would look
like this: pip install prophet --no-binary :all:
Make sure your system has all the necessary dependencies and build
tools installed. Prophet requires a C++ compiler and Python
development headers. Try using a virtual environment to install the
package.
Make sure you have the latest version of pip and python installed.
Check if there is any issue related to it on GitHub
It could be helpful to check the Prophet's GitHub issues or documentation for any known compatibility issues or installation troubleshooting tips.

Message "note: This error originates from a subprocess, and is likely not a problem with pip"

While downloading pip install allennlp==1.0.0 allennlp-models==1.0.0, I faced this problem:
[6 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
building 'srsly.msgpack._unpacker' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for srsly
Failed to build thinc blis srsly
ERROR: Could not build wheels for srsly, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I have downloaded:
pip install -vvv torch
pip install numpy
pip3 install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
and it still not working.
I am using Python 3.10.2 on Windows 11 Pro.
What should I do?
I had Python 3.10 and had the same error installing psutil from pip. I fixed the problem by installing an older version of pip using the command:
pip install pip==21.3.1
You have to install the Python 3.9.10 version from python.org and after installation, upgrade your pip and everything will be sorted.
It is the problem in Python 3.10.2... This method is working. I was suffering from the same problem in installing the turtle, so I did that and error was solved.
This particular error is caused by not having a C/C++ compiler installed. As said in the error message, either install MSVC or another compiler to compile it.
Please read your error messages; they are there for a reason.
If you're using a Python 3 image, this might help:
RUN apk update
RUN apk add make automake gcc g++ subversion python3-dev
Reference from Problems with pip install numpy - RuntimeError: Broken toolchain: cannot link a simple C program
https://visualstudio.microsoft.com/visual-cpp-build-tools/
Download and install or update
Microsoft Visual C++ 14.0 or greater is required.
You must be install build visual tools 15, 17, 19, or greater.
Download from Microsoft C++ Build Tools.
To solve this problem, you need to download Visual Studio from its main page.
If Visual Studio is already installed, then when you run the installer, you can modify it (by clicking the modify button):
During Visual Studio installation (or installation modification) choose Desktop Development with C++:
First: You installed the Mingw-w64 compiler with a full MSYS2 package, and this package included Python.
Second: you get the error because the plugin is not in the Python packages installed by MSYS2.
So: uninstall MSYS2 and install a minimalistic MinGW (MinGW - minimalistic GNU for Windows).
And finally Install a version of Python from the official Python page.
Now if you can install plugins.
I've found a similar question from GitHub, and credits goes to thaibee. Here I quote:
It's a problem with Microsoft products and is
very easy to solve.
If you can't install these plugins as well,
need to download it from other repositories like this one:
https://www.lfd.uci.edu/~gohlke/pythonlibs/ depends on the version of python and the system.
For example: for my Windows 11 (x64) and Python 3.10 I took this file: pyodbc‑4.0.32‑cp310‑cp310‑win_amd64.whl
It's very easy to install: pip install pyodbc‑4.0.32‑cp310‑cp310‑win_amd64.whl
After it, the system works well and didn't ask you about VC.
This solution I found in problem with the MySQL plugin for Django. I don't understand why - but they also use VC for the installation process.
I understand your problem, and I have faced it too. I tried multiple solutions, but it didn't work, so I simply uninstalled my Python and installed some older version of it. Example: I recently uninstalled Python 3.10.2 and installed 3.9.10.
It worked without any errors.
I had a similar problem while installing with pip3: building wheel for box2d-py (setup.py) ... error
The solution was just to install SWIG prior to box2d, so I added the following steps manually:
pip install swig
pip install gym[box2d]
For Mac, there is a possible workaround for this problem if you use Conda. The idea is to create an x86 environment on the Mac and do your pip install after that.
conda create -n <name>
conda activate <name>
conda config --env --set subdir osx-64
conda install python=3.8
Here I choose Python 3.8, but you can choose another version.
If you are on macOS (maybe Apple silicon) then first try to do this from your base location of the terminal:
eval "$(/opt/homebrew/bin/brew shellenv)"
Then, do brew update and brew upgrade.
Once you are done with that, type
brew install geos
Now again go to your virtual environment and activate it (if you are working in the virtualenv) and then type:
python3.10 -m pip3 install [module name]
I was facing the same problem when executing:
python -m pip install package-name
After many failed tentatives, what fixed the problem for me was executing:
py -m pip install package-name
When I type py in the terminal, it shows this information:
Python 3.9.8 (tags/v3.9.8:bb3fdcf, Nov 5 2021, 20:48:33) [MSC v.1929 64 bit (AMD64)] on win32
When I type python in the terminal, it shows this information:
Python 3.8.2 (default, Apr 9 2020, 13:17:39) [GCC 9.3.0 64 bit (AMD64)] on win32
I believe that this problem is related to the Python interpreter version.
I tried all recommendations that were written, but none worked. My Python was 3.11.
So I just installed Python 3.8.10 from here:
https://www.python.org/downloads/release/python-3810/
And ran
C:\Python38\python.exe -m pip install matplotlib
And it worked.
I faced a similar problem while installing pandas-datareader.
I was using Python 3.11.0, and after trying all possible solutions, I downloaded Python 9.10.0 and it worked fine.
We can install DVC with the below commands:
conda install -c conda-forge mamba # installs much faster than conda
mamba install -c conda-forge dvc
For more information please refer this: https://dvc.org/doc/install/

`ModuleNotFoundError: No module named 'rasa_nlu'` error

I am starting with building a chatbot using rasa. I have followed the installation guide of rasa documentation
I have installed rasa using
pip install rasa
I can import rasa using import rasa and rasa.__version__ gives me a output 1.10.0 but when I try to import rasa-nlu I get ModuleNotFoundError: No module named 'rasa_nlu' error. I am working on windows and seen few suggestions that Visual Studio Installer is also required for windows set up. Why is Visual Studio Installer required, or am I missing anything?
Well, you are facing the legit error - I would suggest you move to Linux for easy work with rasa.
I have faced the same issue just like you and when worked with Ubuntu to be more specific the work goes way to smooth.
You should install rasa-nlu
pip install rasa-nlu
https://pypi.org/project/rasa-nlu/
If you want to solve visual c++ error, follow the steps in
https://learn.microsoft.com/en-us/answers/questions/136595/error-microsoft-visual-c-140-or-greater-is-require.html
To remove module not found rasa-nlu error, do pip install rasa-nlu and install all other dependencies which you will encounter during installation of rasa-nlu.

RASA pip installation fail: Multiple requirements incompatible

I am trying to install RASA using instructions here
I created a virtual environment and did a pip install rasa. But below is the error message with multiple dependencies incompatible. Do I install all the specified versions from the error message individually?
I found multiple people having installation issues and tried my best to find a solution in the forum, but couldn't.
error message- list of dependencies
It looks like you are trying to install Rasa1.x in an environment where you had previously installed rasa-nlu and rasa-core separately (pre Rasa 1.x). These are old versions that you can't mix with post-1.x Rasa.
I would recommend creating a new virtual environment, making sure it is active, checking that no rasa-nlu or rasa-core is installed, then running pip install -U rasa or pip install -U rasa==<rasa version that you want> if you want a specific version.

"installation of package ‘tidyverse’ had non-zero exit status" on MacOS

I mostly work in Python to do data analysis, but am trying to learn R stats as well. Python, Pandas, etc are installed via Anaconda on my Mac laptop.
Today I downloaded R Studio onto my laptop, and tried running install.packages("tidyverse") to get started in R. I ran into this error:
ERROR: dependencies ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
After Googling for a while I came across a few instances of this exact or similar issue. However, the solutions are not for Mac, e.g.,
sudo apt install libcurl4-openssl-dev libssl-dev libxml2-dev
It turns out Anaconda has already installed libcurl, libxml2 and openssl for me. Is there a way to get Rstudio to ... "look" (?) ... for the compiled libraries it needs where Anaconda has installed them?
If you know where the libraries are (say /my/lib/path) then you could use withr::with_makevars to supplement the library search path. Something like
library(withr)
with_makevars(c(PKG_LIBS="-L/my/lib/path"), install.packages("tidyverse"), assignment="+=")
Personally, I would try to limit this to only the specific packages in tidyverse that are failing, and not the whole umbrella package.

Resources