Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
catatan
penting
-
-
#!/bin/bash sudo -u ec2-user -i <<EOF # This will affect only the Jupyter kernel called "conda_python3". source activate python3 # ReplacemyPackagewith the name of the package you want to install. pip installmyPackage# You can also perform "conda install" here as well. source deactivate EOF#!/bin/bash sudo -u ec2-user -i <<EOF # Note that "base" is special environment name, include it there as well. for env in base /home/ec2-user/anaconda3/envs/*; do source /home/ec2-user/anaconda3/bin/activate $(basename "$env") # Installing packages in the Jupyter system environment can affect stability of your SageMaker # Notebook Instance. You can remove this check if you'd like to install Jupyter extensions, etc. if [ $env = 'JupyterSystemEnv' ]; then continue fi # ReplacemyPackagewith the name of the package you want to install. pip install --upgrade --quietmyPackage# You can also perform "conda install" here as well. source /home/ec2-user/anaconda3/bin/deactivate done EOF
penting