首页 > 其他分享 >Development in a rootless enviroment

Development in a rootless enviroment

时间:2024-02-05 09:24:19浏览次数:30  
标签:Development 13 rootless 3.10 enviroment python Python venv install

How to install packages

  1. Using brew, Homebrew/Linuxbrew
  2. Download Github Repository Homebrew from Link
  3. Install it under ~/.homebrew
  4. Write the file location to the bashrc file export PATH="[home path]/.homebrew/bin:$PATH"
  5. Install like:

brew install [package name]

Create Python venv for development

  1. Install python and python3-venv Package:
    Use the following command to install the python3-venv package:

    sudo apt-get install python3.8-venv
    
  2. Recreate the Virtual Environment:
    Once you've installed the necessary package, try creating your virtual environment again:

    python3.8 -m venv ml-isa-env
    [or] 
    pip3 install virtualenv
    virtualenv -p /usr/bin/python3.6 venv
    
  3. Activate the Virtual Environment:
    After successfully creating the virtual environment, you can activate it using:

    Copy code
    source ml-isa-env/bin/activate
    

    Your command prompt should change to indicate that you are now working inside the ml-isa-env virtual environment.

  4. Deactivate Virtual Environment:
    Once you're done working in the virtual environment and want to go back to the global Python, you can deactivate it by simply typing:

    deactivate
    
  5. if in the system there is no global python is installed, create a local python version to create the virtual env

[home name]@lance:~/PyEnv/ml-isa-env$ pyenv install 3.10
Downloading Python-3.10.13.tar.xz...
-> https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tar.xz
Installing Python-3.10.13...
Installed Python-3.10.13 to /home/[home name]/.pyenv/versions/3.10.13

标签:Development,13,rootless,3.10,enviroment,python,Python,venv,install
From: https://www.cnblogs.com/holylandofdora/p/18007332

相关文章

  • Collision Resolution -Game Physics Engine Development总结
    ThevelocityofapointThevelocityofapointonanobjectdependsonbothitslinearandangularvelocity:\[\dot{q}=\dot{\theta}\times(q-p)+\dot{p}\qquad\qquad[1.0]\]where\(\dot{q}\)isthevelocityofthepoint,\(p\)ist......
  • Development and Construction of Dapp Pledge Mining System
    Pledgeminingsystemisanemergingapplicationofblockchaintechnology,whichpledgesdigitalassetsontheblockchaintoobtaincorrespondingproofofequity,inordertoachieveproofofequityminingontheblockchain.Thedevelopmentofpledgeminin......
  • TDD(Test-Driven Development)测试驱动开发
    TDD(Test-DrivenDevelopment)是一种软件开发方法,其中开发人员在编写实际代码之前编写测试用例。TDD的基本思想是在开发过程中先编写测试,然后编写足够的代码来通过这些测试。TDD的一般流程通常包括以下阶段:编写测试用例(Test):开发人员首先编写一个测试用例,该用例描述了新功能或修......
  • Inferring Developmental Trajectories and Causal Regulations with Single-cell Gen
    InferringDevelopmentalTrajectoriesandCausalRegulationswithSingle-cellGenomicsDevelopmentiscommonlyregardedasahierarchicalbranchingprocesswhichisgovernedbyunderlyinggeneregulatorynetworks.Single-cellgenomics,single-cellRNA-seq......
  • pycharm中三种解释器:virtual Enviroment、conda Enviroment、system interpreter
    1、systeminterpreter不推荐使用2、VirtualEnvironment—Python的虚拟环境可以使一个Python程序拥有独立的库library和解释器interpreter,而不用与其他Python程序共享统一个library和interpreter。虚拟环境的好处是避免了不同Python程序间的互相影响(共同使用globallibrary和i......
  • appsettings.json和appsettings.Development.json
    在ASP.NETCore中,当应用程序处于开发环境时,默认情况下会加载appsettings.json和appsettings.Development.json文件中的配置,并且appsettings.Development.json中的配置会覆盖appsettings.json中的相同配置。这是ASP.NETCore提供的一种便捷的配置管理机制。如果你希......
  • 全球首发:《Guidelines for Secure AI System Development 安全人工智能系统开发指南》
    在一项具有里程碑意义的合作中,美国网络安全和基础设施安全局(CISA)和英国国家网络安全中心(NCSC)宣布发布安全人工智能系统开发指南。该出版物由23个国内和国际网络安全组织共同密封,标志着在解决人工智能(AI)、网络安全和关键基础设施交叉点方面迈出了重要一步。该指南补充了美国确保安全......
  • Xcode 展示failed to prepare the device for development
    首先打开链接找到https://gitee.com/Han0/iOSDeviceSupport 找到对应版本,解压其次打开终端输入 open/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport然后将解压后的文件夹放进去,即可重启xcode......
  • php<= 7 . 4 . 21 development server源码泄露漏洞复现
    前言前一段时间在看羊城杯wp里了解到了这个漏洞,觉得挺有意思尝试复现一下(这里附上原漏洞地址https://blog.projectdiscovery.io/php-http-server-source-disclosure/版本PHP<=7.4.21漏洞成因通过php-S开起的内置WEB服务器存在源码泄露漏洞,可以将PHP文件作为静态文件......
  • Ultrabook™ and Tablet Windows* 8 Sensors Development Guide
    MicrosoftWindows*8Desktop  Sensors  Laptop  Tablet  MicrosoftWindows*8IntroductionThisguidegivesdevelopersanoverviewoftheMicrosoftWindows8.1sensorsapplicationprogramminginterfaces(APIs)forWindows8.1DesktopandWindowsStore......