Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Force Upgrade of Python Package? #55

Open
hifihedgehog opened this issue Jan 10, 2020 · 2 comments
Open

How to Force Upgrade of Python Package? #55

hifihedgehog opened this issue Jan 10, 2020 · 2 comments

Comments

@hifihedgehog
Copy link

hifihedgehog commented Jan 10, 2020

This is not clearly described in the documentation either here or on Microsoft's website. What is the process to upgrade a Python package to a later version when you receive the following information message:

Package scikit-learn exists on server. Set upgrade to True to force upgrade.".format(pkgname))
The version of scikit-learn you are trying to install is 0.22.1.
The version installed on the server is 0.18.1

What is the syntax I am supposed to follow?

@hifihedgehog hifihedgehog changed the title How to Force Upgrade of Python Package How to Force Upgrade of Python Package? Jan 10, 2020
@NelGson
Copy link

NelGson commented Jan 30, 2020

Hi, upgrading the base packages is unfortunately not supported. By base Python packages, I mean the ones that are installed together with the runtime shipped with SQL Server. We will fix the error message as it is misleading, and also clarify this limitation on our documentation website. Is there some way I can follow up with you via email on an option that we are working on which might help in the future? Thanks,
Nellie

@hifihedgehog
Copy link
Author

hifihedgehog commented Jan 31, 2020

That's good to know. I strongly suggest that the documentation on Microsoft's website should clarify this since it expressly states (with a proceeding ! in the header):

The standard Python pip install command is not recommended for adding Python packages on SQL Server 2019. Instead, use sqlmlutils as described in this article.

As a result, I thought that all along I was taking the wrong approach since the documentation at one point in time began stating there that using pip was outdated when, in reality, it has been the correct approach. In either case, I will therefore continue using pip since I have to upgrade certain pre-installed libraries in order to support newer machine learning features that these libraries do not support in their stock, out-of-date form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants