from pandas_profiling import profilereport Error - jupyter-notebook

I've installed the pandas_profiling package but, the system is not recognizing the package.
I'm using VS Code for the project.
Hi, I'm trying to install pandas profiling for an ML testing project I've checked multiple Question Related to it on StackOverFlow but could not find any match Or Solution.
I've checked the package and it got successfully installed on the system.
But I'm still getting the Error
FYI:
I've installed multiple packages required for the project, such as NumPy, pandas, etc., and did not face any problems.
Note: If any other info is required let me Know.

import sys
!{sys.executable} -m pip install pandas-profiling
Add the above line to the top of your file

Related

Can't installing azureml-sdk on Mac M1

I'm trying to install azureml-sdk in a Mac M1 with Python 3.9.15 and facing the following problems:
When I pip install azureml-sdk, it installs an old version (azureml==1.0.23)
If I run:
from azureml.core import Workspace
ws = Workspace.from_config()
I get the following error:
AttributeError: 'BasicTokenAuthentication' object has no attribute 'get_token'
And if I try to install the latest azureml-sdk version with
pip install azureml-sdk==1.48.0
I get the following error:
ERROR: Cannot install azureml-dataset-runtime because these package versions have conflicting dependencies.
The conflict is caused by:
azureml-dataprep 4.8.3 depends on azureml-dataprep-native<39.0.0 and >=38.0.0
azureml-dataprep 4.8.2 depends on azureml-dataprep-native<39.0.0 and >=38.0.0
azureml-dataprep 4.8.1 depends on azureml-dataprep-native<39.0.0 and >=38.0.0
azureml-dataprep 4.8.0 depends on azureml-dataprep-native<39.0.0 and >=38.0.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Any ideas? Thanks in advance
Regarding the first error you cited, this error is typically experienced when the provided login credentials for the Azure Machine Learning workspace are incorrect.
Verify the access rights for the workspace on the service principal you are using for authentication.
Make sure the configuration file you use for authentication is formatted correctly and has all the necessary elements.
Use the newly created service principal and configuration file to authenticate.
The second error is because these package versions have conflicting dependencies, typically experienced when there is a conflict between the dependencies of the installed packages.
You might attempt the following solutions to troubleshoot this problem:
Try downgrading or upgrading the conflicting packages' versions until you find one that works with the Azure Machine Learning SDK.
To avoid installing the dependencies, try installing the Azure Machine Learning SDK using the —no-deps parameter.
If the issue still exists, you can try deleting and then reinstalling every package linked to Azure Machine Learning.

Installing Julia Packages via GitHub

To preface this question I am coming from the perspective of an absolute beginner, trying to learn Julia. I was recommended to try the SciML tutorial and in trying to install it have fallen at the first hurdle.
So far I have:
Installed Julia
Installed Anaconda
Installed Jupyter Notebook
Added "git" through the Anaconda console
Added "IJulia"
From here I have been able to open Jupyter through Anaconda and access Julia 1.7.3 within it. Following this I attempted to follow the instructions on the SciML website for getting started with the tutorial, which is to enter this code:
using Pkg
pkg"add https://github.com/SciML/SciMLTutorials.jl"
using SciMLTutorials
SciMLTutorials.open_notebooks()
However, the second line is throwing this error
invalid git HEAD (reference 'refs/heads/master' not found)
I have also tried installing the package through the Julia console, but recieve the same error.
I am at a loss of how to proceed - I can't find anything in the documentation that suggests why this may be or how to proceed - since I am so new to this I suspect I may have missed a step in my installation process, but can't figure out where that may be.

Updating R, I do not understand the logic of how R works after updating R to latest version

I've come across a common problem but do not understand the logic of how R works.
So I had R 3.4 and all my libraries were in /usr/local/.../R/3.4 local direction. These libraries were installed using super user admin rights.
I've recently upgraded to R 4.0.0.2, and installed Rstudio, and do not run Rstudio as super user. I've created a new local direction ~/R/x86_ubuntu/4.0 local library.
Now the .libPaths() has the first entry as my local directory, and subsequent paths point to previous library paths.
So if i enter install.packages(foo), the error says,
This package package ‘foo’ was installed before R 4.0.0: please re-install it.Error: package ‘dotCall64’ could not be loaded.'
However I am re-installing the package from source, yet I get the error that I could not re-install it.
I have also tried the install.updates(check=TRUE,ask=FALSE) command and this still gave the same answer.
There are similar posts to this problem, but I just need an explanation as to why this is failing?
Is it because of the library paths conflict? R is trying to load a previous older 3.4 library directory?
This does not make sense because I've downloaded all my 4.0 libraries from source? why is it still pulling from the older versions?
Should I just remove other library paths? Should I delete my old previous library folders?

OpenMDAO installation

I need openmdao on windows 8 to run an aerostructutal optimization code that uses it but I’m having issues in the installation process. I installed numpy and scipy through pip in the cmd and then also openmdao using pip install openmdao but when I try to run a .py with copied inside the code at the bottom of this page, I get an error about “Component” not being found to import. What am I doing wrong ?
Some codes are written for a specific version of OpenMDAO. If you are using OpenAeroStruct, it requires OpenMDAO 1.7.4, not OpenMDAO 2.2.x.
To obtain the correct version, you would need to use the command pip install openmdao==1.7.4 or to download and install the source directly from here: https://github.com/OpenMDAO/openmdao1, following the instructions on the README, not on readthedocs.

Installing R on Apache Zeppelin

I'm trying to install Apache Zeppelin on my old computer that runs Ubuntu. So far, I'm able to install Zeppelin very easily by cloning the latest 0.6.0 snapshot release using
git clone https://github.com/apache/incubator-zeppelin.git
cd incubator-zeppelin
mvn clean package -DskipTests
but I want to have R on Zeppelin. Supposedly, the 0.6.0 snapshot has two R interpreters, but when I run the R tutorial (the pre-made note that uses %r), I get this list of errors.
I followed several guides to try and install R as an interpreter, but each one resulted in some kind of error. I tried this instructional:
http://www.r-bloggers.com/interactive-data-science-with-r-in-apache-zeppelin-notebook/, and got a build failure on "R Interpreter". The error message was
"dependency 'evaluate' is not available for package 'rzeppelin'
* removing '/home/rebecca/Zeppelin-With-R/R/lib/rzeppelin'"
and then a bit lower down
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default) on project zeppelin-zrinterpreter: Command execution failed. Process exited with an error: 1
I also tried this Stack Overflow guide: Anyone tried to add R interpreter onto Apache Zeppelin?, and while I was able to run incubator-zeppelin, I received an error when I used either the %spark.r or %r interpreter tags, saying both "interpreter not found" and "prefix not found". Spark doesn't work either after following the first solution, getting the same error mentioned in the second solution (the jar file not being there), and then trying the second solution.
Does anyone have a guide for installing R onto the newest version of Zeppelin? I'm very flexible in the way I can install it. I can run other operating systems onto my computer, and I also have Virtual Box installed on my other computer, which is a mac.
There is currently a bug in the latest HEAD of zeppelin that was recently introduced and prevents the R interpreter from launching cleanly
Did anyone created a Zeppelin Jira Issue for that?
For me it is working on Zeppelin branch-0.6
build Zeppelin with r profile: -DskipTests -Prthis will...
create a directory 'R' in git repo root
copy the 'zeppelin-rinterpreter*.jar' into git_repo_root/interpreter/spark
build Zeppelin with build distro profile: e.g. -DskipTests -Pbuild-distr -Pspark-1.6 -Phadoop-2.6
use zeppelin-distribution/target/zeppelin*.tar.gz for installation
ensure both 1.1 and 1.2 are present in your zeppelin installation
The error you're getting is that you need to have the R package evaluate installed. You can install this simply by launching R and typing install.packages('evaluate').
That said, your excerpt mentions the directory Zeppelin-with-R. That's my repo, which is the R interpreter in the form when it was accepted into Zeppelin. That is version 0.5.6, not 0.6.0. There is currently a bug in the latest HEAD of zeppelin that was recently introduced and prevents the R interpreter from launching cleanly. Your best bet for now is to use the one from my repo and install clean, without trying to pull-in from Zeppelin HEAD.

Resources