0

I am tying to install pycryptodome to azure synapse notebook. PFB details.

scenario - I have created a notebook and Apache spark pool in azure synapse. I used the Below command to list the packages installed on pool. I don't see my required packages in the list. So I tried to install it using requirement.txt file and requirement.yml file in package section of Apache spark pool.

steps performed-

pip list : command to see the packages already installed.

created below file and uploaded in package section of Apache Spark pool.

requirement.txt:

pycryptodome==3.16.0

requirement.yml code:

name: pycrypto_lib

channels:

-defaults
dependencies:

-pip:
 -pycryptodome

error= PFA screenshot

enter image description here please share your suggestion. Thanks!

sac
  • 175
  • 2
  • 14

1 Answers1

0

If you want to install pycryptodome. Follow the below steps:

Go to Manage -> Go to Apache Spark pool -> select Packages -> upload package_file.txt -> apply.

Note: inside package_file.txt make sure to mention your package name:
pycryptodome==3.16.0

enter image description here

enter image description here

I tested on my environment successfully installed pycryptodome==3.16.0

enter image description here

To verify package version. Follow below code:

import pkg_resources
for d in pkg_resources.working_set:
    print(d)

You can check Successfully package installed:

enter image description here

B. B. Naga Sai Vamsi
  • 2,386
  • 2
  • 3
  • 11
  • thanks for the response. I tried this option already, but somehow the Conda environment which is using Spark pool for this notebook execution is messed up and not working with Requirements.txt file. So I am able to make it working with Pycryptodome Linux .whl file and uploaded into Workspace Packages. – sac Feb 08 '23 at 20:24