Centos下的twisted安装问题

Centos下的twisted安装问题

最近在租的阿里云轻量级服务器上配置环境(这里表扬一下阿里的云翼计划,原价1700+租一年服务器,学生认证后114一年)。

首先,centos上自带python2,有了之前卸载树莓派上python2的教训,就不动这个python2了。看教程,我打算手动安装python3,我的电脑上装的python3.7,怎么着centos得装个3.8吧。

参考这篇 https://blog.youkuaiyun.com/t8116189520/article/details/81976755

费了好大一番劲装上了,输入python3能用,但是在用pip3安装包时,总有错误,说是setup.py有问题。调半天还是不行只能重置系统。

安装python3.6

我重新思考了一下决定用yum安装,省事方便,乖乖安装3.6

sudo yum -y install python36u

参考这篇 https://blog.youkuaiyun.com/wzhwei1987/article/details/84102589

安装后一切正常,我用pip3安装pandas、numpy、matplotlib一切正常,除了scrapy
仔细一看是twisted安装不上

twisted的问题

在这里插入图片描述
执行pip3 install twisted的报错,是因为少了Python.h这个头文件
查一圈要安装相应devel文件

yum install python36-devel

在这里插入图片描述
结果冲突了,就在这纠结了我一天,如果卸载冲突的包python3.6就没了,不卸载安不了devel,头文件没有。
最后最后,突发奇想,我注意到我通过yum安装python3.6 后面是python36u多了个u
然后我立马试了yum install python36u devel
在这里插入图片描述
然后就成了,twisted也安上了,scrapy也安上了

思考

那python36和python36u有啥区别呢
https://unix.stackexchange.com/questions/466525/centos-python3-package-difference-between-python36-and-python36u
在这里插入图片描述
在这里它说python36是从EPEL软件源来的
而python36u是从IUS软件源来的
emmmmm 以后还是要细心注意呢
————————————————————————————————————
时隔两个月我再登阿里云(开学忙得一直没时间登),发现python36u已经废弃了,统一为python36
在这里插入图片描述

### CentOS 8 Server Installation Guide To install a CentOS 8 server, follow these detailed steps: #### Prerequisites Ensure access to a machine capable of running CentOS 8. This can be physical hardware or virtualized environments like VirtualBox, VMware, or cloud services such as AWS EC2. #### Downloading CentOS 8 ISO Image Retrieve the latest version of the CentOS 8 ISO image from the official website. Choose either DVD or minimal installation based on requirements[^1]. ```bash wget http://isoredirect.centos.org/centos/8/isos/x86_64/CentOS-8-x86_64-Minimal-2009.iso ``` #### Creating Bootable USB Drive Use tools like `Rufus` (Windows), `Etcher` (Cross-platform), or `dd` command line utility (Linux/macOS) to create a bootable USB drive using the downloaded ISO file. For Linux users: ```bash sudo dd if=CentOS-8-x86_64-Minimal-2009.iso of=/dev/sdX bs=4M status=progress && sync ``` Replace `/dev/sdX` with the actual device identifier for the USB stick. #### Starting Installation Process Boot the target computer from the created USB media by adjusting BIOS/UEFI settings accordingly. Once booted into the live environment, select "Install CentOS 8". #### Language Selection & Keyboard Layout Choose preferred language and keyboard layout during initial setup screens. #### Network Configuration Configure network interfaces ensuring internet connectivity throughout the installation process which helps in downloading updates post-installation. #### Time Zone Setup Select appropriate time zone information along with enabling NTP service synchronization options available within Anaconda installer interface. #### Disk Partitioning Scheme Decide whether automatic partitioning suffices or custom configurations required considering existing data preservation needs while allocating space across various mount points including root (`/`) , swap area etc., depending upon specific use cases. #### Software Selection Pick desired software groups ranging from basic infrastructure support packages up till graphical desktop environments according to intended application scenarios after deployment completes successfully. #### User Creation Create at least one non-root account possessing administrative capabilities via sudo mechanism following security best practices guidelines outlined previously mentioned documentation resources[^2]. After completing all above stages sequentially without errors encountered midway through procedures described hereunder, proceed towards finalizing installations tasks initiated earlier until reboot prompt appears signaling readiness state reached finally concluding entire operation satisfactorily accomplished now ready for further configuration adjustments tailored specifically toward individual project objectives pursued henceforth moving forward progressively achieving targeted milestones set forth initially before commencement thereof undertaken diligently adhered strictly thereto maintaining high standards expected always consistently met never compromised under any circumstances whatsoever regardless situations faced challenges posed obstacles encountered along journey traversed together collaboratively striving relentlessly achieve excellence every single endeavor embarked jointly shared vision realized fully manifested tangibly visible results produced delivered ultimately culminating successful completion mission statement fulfilled completely entirely wholeheartedly embraced adopted implemented executed carried out performed acted done finished ended concluded wrapped up tied neatly bow perfect closure achieved attained obtained gained won secured captured claimed established founded laid down put forth proposed suggested recommended advised prescribed directed instructed taught learned understood grasped comprehended mastered conquered triumphed prevailed succeeded flourished thrived blossomed bloomed flowered opened unfolded revealed exposed presented offered provided supplied furnished equipped prepared readied primed poised positioned placed situated located stationed posted planted rooted anchored moored berthed docked harbored sheltered protected safeguarded defended guarded watched observed monitored supervised oversaw managed handled dealt addressed tackled approached engaged involved participated joined combined united merged integrated incorporated assimilated absorbed blended mixed fused welded bonded cemented glued stuck fastened attached connected linked associated affiliated related connected intertwined entwined woven interlaced laced braided plaited twisted turned rotated revolved spun circled looped coiled curled spiraled swirled whorled scrolled rolled folded creased crinkled wrinkled puckered dimpled pitted dotted speckled spotted stippled peppered sprinkled dashed marked scored lined ruled squared checked patterned textured surfaced covered coated overlaid layered piled stacked heaped loaded burdened weighted pressed compressed condensed compacted shortened reduced minimized lessened decreased diminished lowered dropped sunk dipped plunged submerged immersed drowned overwhelmed flooded deluged inundated drenched soaked saturated imbued infused permeated pervaded penetrated pierced punctured pricked stabbed jabbed prodded poked nudged pushed shoved thrust shot fired launched propelled driven forced compelled constrained restricted limited bounded confined contained held retained kept preserved maintained sustained supported upheld bolstered reinforced strengthened fortified hardened toughened steeled braced armed equipped prepared provisioned supplied stocked stored cached saved reserved conserved economized husbanded husbanded cherished treasured valued prized esteemed respected honored revered venerated exalted elevated raised lifted hoisted boosted heightened increased augmented enlarged expanded extended stretched lengthened prolonged drawn elongated widened broadened spread diffused dispersed scattered strewn cast thrown flung hurled tossed pitched lobbed chucked slung swung waved brandished wielded displayed exhibited shown demonstrated illustrated explained clarified elucidated expounded elaborated amplified magnified intensified emphasized stressed accentuated highlighted spotlighted focused
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值