Forum Discussion
Update Built-in libraries in new Environment
- 1 year ago
I have experienced this. It's baffling that nobody suggested this, but unfortunately this page reads like 99.9 of all requests for help with Microsoft I've ever seen. Conda packages override pypy ones. Try adding the packages needed from conda instead of pypy in the environment package area. You should see the option at the top left in the same screen that you posted the screenshot of.
Hi Anonymous,
Thank you for the detailed update. Please follow below steps to resolve the error;
1.Even if you created the environment, it won’t be applied unless you publish it.
Go to Fabric > Environments → Verify your environment is "Published" (not just "Saved").
2.Manually Attach the Environment, Please run the below command
!source /home/trusted-service-user/cluster-env/<your_env_name>/bin/activate
3.Force Reinstall the Library and Verify:
For installation; %pip install --force-reinstall transformers==4.49.0
For Verification;
import transformers
print(transformers.__version__)
Please continue using Microsoft community forum.
If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.
Regards,
Pavan.
Hi,
The packages are all published:
But I still cant connect to the environment:
- Anonymous1 year agoNot applicable
Hi Anonymous,
Thank you for the update and sharing the screenshots.
1. Please check the fabric permissions
Go to Admin Portal > Tenant Settings > Environments → Ensure you have "Create and Manage Environments" permissions.
2.Manually Set Environment in Notebook Metadata
Go to Notebook Settings > Advanced > Metadata → Add
{
"kernel": {
"name": "python3",
"environment": "<your_env_name>"
}
}3.Create a new notebook, select your environment, and verify with below code
!which python
Please continue using Microsoft community forum.
If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.
Regards,
Pavan.- Anonymous1 year agoNot applicable
Hi,
We do not see Environments in Tenant Settings, or Advanced in Notebook Settings:- Anonymous1 year agoNot applicable
Hi Anonymous,
Thank you for reaching out in Microsoft Community Forum.
please follow below steps to resolve the issue;
1. Since you can't see Environments in Tenant Settings, it indicates you lack admin privileges. Ask your Fabric Admin to grant you access to "Create and Manage Environments" in Tenant Settings.
2. Make sure you are using a Premium workspace with Fabric capacity enabled.
3. Manually activate the environment in the current session using:
!source /home/trusted-service-user/cluster-env/<your_env_name>/bin/activate
!pip install --force-reinstall transformers==4.49.0Please continue using Microsoft community forum.
If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.
Regards,
Pavan.