question

santra-4408 avatar image
0 Votes"
santra-4408 asked santra-4408 commented

deployment issue in Azure.

Hello, I am a beginner in Azure ML. I am trying to deploy a machine learning model (consisting of a h5 file and a pickle file) in Azure. But when I call the web-service error is coming up.

  Pip subprocess error:  
     ERROR: Could not find a version that satisfies the requirement pickle (from -r /azureml-environment-setup/condaenv.b2ewzkd8.requirements.txt (line 5)) (from versions: none)  

I am using Jupiter notebook with SDK 1.34, Python version 3.8.11 and pickle version 4. Can anyone help. Thank you.

azure-machine-learning
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

Are you following any document so that we can reproduce your issue?

Thanks.

Regards,
Yutong

0 Votes 0 ·

1 Answer

YutongTie-MSFT avatar image
0 Votes"
YutongTie-MSFT answered santra-4408 commented

Hello,

Sorry not hear from you back. Since we don't have much information, there are two possible solution:

  1. You can pip install pickle by running command pip install pickle-mixin. Proceed to import it using import pickle. This can be then used normally.

  2. If you are using Python 3.7, pickle should be installed by default, you can call it directly by import pickle.


Please let us know if you still have issue about this.

Regards,
Yutong

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I managed the solve the problem, the pickle file has to saved in the protocol 4, and then everything works.

1 Vote 1 ·